Skip to content

Commit

Permalink
Include MixedInstancesPolicy LaunchTemplate for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiang-zhang committed Mar 14, 2024
1 parent 90e16ce commit 92a65d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/actions/nodegroup/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ func validateNodeGroupAMI(ctx context.Context, awsProvider api.ClusterProvider,
return fmt.Errorf("expected to find exactly one Auto Scaling group for nodegroup; got %d", len(asg.AutoScalingGroups))
}
lt := asg.AutoScalingGroups[0].LaunchTemplate
if lt == nil {
lt = asg.AutoScalingGroups[0].MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification
}
if lt == nil {
logger.Warning("nodegroup with Auto Scaling group %q does not have a launch template", asgName)
return nil
Expand Down

0 comments on commit 92a65d8

Please sign in to comment.