mirror of https://github.com/kubernetes/kops.git
Only set NTH ManagedASGTag label if it doesn't already exist
This commit is contained in:
parent
c6334caeb0
commit
12b9fac068
|
@ -161,7 +161,10 @@ func (b *KopsModelContext) CloudTagsForInstanceGroup(ig *kops.InstanceGroup) (ma
|
|||
// Apply NTH Labels
|
||||
nth := b.Cluster.Spec.CloudProvider.AWS.NodeTerminationHandler
|
||||
if nth.IsQueueMode() {
|
||||
labels[fi.ValueOf(nth.ManagedASGTag)] = ""
|
||||
k := fi.ValueOf(nth.ManagedASGTag)
|
||||
if _, ok := labels[k]; !ok && k != "" {
|
||||
labels[k] = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue