Skip to content

Commit c3dfe72

Browse files
authored
PCP-4653: Node pool customization not working without specifying AMI ID (#970)
1 parent 196fa57 commit c3dfe72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cloud/services/eks/nodegroup.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ func (s *NodegroupService) createNodegroup() (*eks.Nodegroup, error) {
222222
RemoteAccess: remoteAccess,
223223
UpdateConfig: s.updateConfig(),
224224
}
225-
if managedPool.AMIType != nil && (managedPool.AWSLaunchTemplate == nil || managedPool.AWSLaunchTemplate.AMI.ID == nil) {
225+
226+
// Palette have all input for nodepool customization as optionsl.
227+
// Allow creating AWS launch templates without specifying an AMI ID. CAPA will do lookup for the AMI ID.
228+
if managedPool.AMIType != nil && (managedPool.AWSLaunchTemplate == nil /*|| managedPool.AWSLaunchTemplate.AMI.ID == nil*/) {
226229
input.AmiType = aws.String(string(*managedPool.AMIType))
227230
}
228231
if managedPool.DiskSize != nil {

0 commit comments

Comments
 (0)