fix(kubernetes): use kind_namespace_name_replicas format for group scanning

This commit is contained in:
Alexis Couvreur
2023-04-07 14:48:10 -04:00
parent eacfca9ce9
commit fc1b133704

View File

@@ -114,7 +114,9 @@ func (provider *KubernetesProvider) GetGroups() (map[string][]string, error) {
}
group := groups[groupName]
group = append(group, deployment.Name)
// TOOD: Use annotation for scale
name := fmt.Sprintf("%s_%s_%s_%d", "deployment", deployment.Namespace, deployment.Name, 1)
group = append(group, name)
groups[groupName] = group
}