K8s: Folders: Modify GetChildren to return only Folder References (#103072)
* Return FolderReference instead of Folder on GetChildren Signed-off-by: Maicon Costa <maiconscosta@gmail.com> --------- Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
@@ -320,7 +320,7 @@ type Namespaced interface {
|
||||
GetNamespaceUID() string
|
||||
}
|
||||
|
||||
type Namespace folder.Folder
|
||||
type Namespace folder.FolderReference
|
||||
|
||||
func (n Namespace) GetNamespaceUID() string {
|
||||
return n.UID
|
||||
|
||||
@@ -298,7 +298,7 @@ func (a *AlertRuleMutators) WithNamespaceUID(namespaceUID string) AlertRuleMutat
|
||||
}
|
||||
}
|
||||
|
||||
func (a *AlertRuleMutators) WithNamespace(namespace *folder.Folder) AlertRuleMutator {
|
||||
func (a *AlertRuleMutators) WithNamespace(namespace *folder.FolderReference) AlertRuleMutator {
|
||||
return a.WithNamespaceUID(namespace.UID)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user