Skip to content

Commit

Permalink
chore: Add nodepool label to instance if found as tag (#4695)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Sep 26, 2023
1 parent f5cb46e commit 0f7de8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cloudprovider/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ func (c *CloudProvider) instanceToNodeClaim(i *instance.Instance, instanceType *
labels[v1alpha5.ProvisionerNameLabelKey] = v
nodeClaim.IsMachine = true
}
if v, ok := i.Tags[corev1beta1.NodePoolLabelKey]; ok {
labels[corev1beta1.NodePoolLabelKey] = v
}
if v, ok := i.Tags[corev1beta1.ManagedByAnnotationKey]; ok {
annotations[corev1beta1.ManagedByAnnotationKey] = v
}
Expand Down

0 comments on commit 0f7de8e

Please sign in to comment.