Skip to content

Commit

Permalink
Merge pull request kubernetes#7441 from hetznercloud/provided-by-label
Browse files Browse the repository at this point in the history
feat(hetzner): autoscaler includes new provided-by label
  • Loading branch information
k8s-ci-robot authored Oct 29, 2024
2 parents e6150cc + 690b059 commit 5399a0b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5399a0b

Please sign in to comment.