Skip to content

Commit

Permalink
Merge pull request #3926 from sylr/allow-generic-labels-overwrite
Browse files Browse the repository at this point in the history
Allow generic labels to be overwritten by tags coming from the ASG
  • Loading branch information
k8s-ci-robot authored Mar 12, 2021
2 parents 57be08d + bb208be commit 5d05268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-autoscaler/cloudprovider/aws/aws_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ func (m *AwsManager) buildNodeFromTemplate(asg *asg, template *asgTemplate) (*ap
// TODO: use proper allocatable!!
node.Status.Allocatable = node.Status.Capacity

// NodeLabels
node.Labels = cloudprovider.JoinStringMaps(node.Labels, extractLabelsFromAsg(template.Tags))
// GenericLabels
node.Labels = cloudprovider.JoinStringMaps(node.Labels, buildGenericLabels(template, nodeName))
// NodeLabels
node.Labels = cloudprovider.JoinStringMaps(node.Labels, extractLabelsFromAsg(template.Tags))

node.Spec.Taints = extractTaintsFromAsg(template.Tags)

Expand Down

0 comments on commit 5d05268

Please sign in to comment.