What were you trying to accomplish?
Scaling up an (unmanaged) nodegroup which has mixed instances (using instancesDistribution)
What happened?
The scale up throws a warning that no launch template can be found (even if one exists). The actual scale up succeeds, but the warning is wrong.
How to reproduce it?
eksctl scale ng --cluster <cluster_name> --nodes=2 --nodes-min=0 --nodes-max=4 <ng_name>
Logs
2024-03-13 10:12:46 [!] nodegroup with Auto Scaling group "ng_name" does not have a launch template
Anything else we need to know?
I think it is related to the output of the aws autoscaling describe-auto-scaling-groups, which returns a different structure in case mixed instance policy is applied. eksctl expects LaunchTemplate as a top level property in the ASG struct, but for mixed instance node groups the property is nested one level deeper under the MixedInstancesPolicy property (so launch template is in MixedInstancesPolicy.LaunchTemplate)
Versions
eksctl version: 0.162.0
kubectl version: v1.26.9
OS: linux