Skip to content

Commit

Permalink
retain AMIType
Browse files Browse the repository at this point in the history
  • Loading branch information
pavansokkenagaraj committed Nov 7, 2024
1 parent c1f53df commit 901f351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cloud/services/eks/nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ func (s *NodegroupService) createNodegroup() (*eks.Nodegroup, error) {
RemoteAccess: remoteAccess,
UpdateConfig: s.updateConfig(),
}
if managedPool.AMIType != nil && (managedPool.AWSLaunchTemplate == nil /*|| managedPool.AWSLaunchTemplate.AMI.ID == nil*/) {
// if managedPool.AMIType != nil && (managedPool.AWSLaunchTemplate == nil /*|| managedPool.AWSLaunchTemplate.AMI.ID == nil*/) {
if managedPool.AMIType != nil {
input.AmiType = aws.String(string(*managedPool.AMIType))
}
if managedPool.DiskSize != nil {
Expand Down

0 comments on commit 901f351

Please sign in to comment.