mirror of https://github.com/kubernetes/kops.git
Order attached TargetGrups list by name
This commit is contained in:
parent
fdcc2607bf
commit
19345c3f7f
|
@ -418,6 +418,7 @@ func (b *AutoscalingGroupModelBuilder) buildAutoScalingGroupTask(c *fi.ModelBuil
|
|||
c.AddTask(tg)
|
||||
}
|
||||
}
|
||||
sort.Stable(awstasks.OrderTargetGroupsByName(t.TargetGroups))
|
||||
|
||||
// @step: are we using a mixed instance policy
|
||||
if ig.Spec.MixedInstancesPolicy != nil {
|
||||
|
|
|
@ -179,6 +179,7 @@ func (e *AutoscalingGroup) Find(c *fi.Context) (*AutoscalingGroup, error) {
|
|||
return nil, err
|
||||
}
|
||||
actual.TargetGroups = targetGroups
|
||||
sort.Stable(OrderTargetGroupsByName(actual.TargetGroups))
|
||||
}
|
||||
|
||||
if g.VPCZoneIdentifier != nil {
|
||||
|
|
Loading…
Reference in New Issue