Merge pull request #7441 from hetznercloud/provided-by-label

feat(hetzner): autoscaler includes new provided-by label
This commit is contained in:
Kubernetes Prow Robot 2024-10-29 10:52:55 +00:00 committed by GitHub
commit 5399a0b463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -384,11 +384,12 @@ func buildNodeGroupLabels(n *hetznerNodeGroup) (map[string]string, error) {
klog.V(4).Infof("Build node group label for %s", n.id)
labels := map[string]string{
apiv1.LabelInstanceType: n.instanceType,
apiv1.LabelTopologyRegion: n.region,
apiv1.LabelArchStable: archLabel,
"csi.hetzner.cloud/location": n.region,
nodeGroupLabel: n.id,
apiv1.LabelInstanceType: n.instanceType,
apiv1.LabelTopologyRegion: n.region,
apiv1.LabelArchStable: archLabel,
"csi.hetzner.cloud/location": n.region,
"instance.hetzner.cloud/provided-by": "cloud",
nodeGroupLabel: n.id,
}
if n.manager.clusterConfig.IsUsingNewFormat {