Skip to content

Commit

Permalink
Don't default AMI Family if LaunchTemplate specified (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
suket22 authored Feb 16, 2022
1 parent 90e4c2d commit 949dd68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ func (c *Constraints) defaultAMIFamily() {
if c.AMIFamily != nil {
return
}
if c.LaunchTemplate != nil {
return
}
c.AMIFamily = &AMIFamilyAL2
}

0 comments on commit 949dd68

Please sign in to comment.