Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ManagedNodeGroup with custom launch template and AMI type #1464

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

flostadler
Copy link
Contributor

When creating an EKS managed NodeGroup with a custom launch template, the AMI type must be removed from the nodegroup itself and instead specified in the launch template.
This did not work if the user specified the AMI type instead of the provider determining it.

This change fixes that by correctly omitting the user defined AMI type as well in that case.

Fixes #1463

When creating an EKS managed NodeGroup with a custom launch template,
the AMI type must be removed from the nodegroup itself and instead specified
in the launch template.
This did not work if the user specified the AMI type instead of the
provider determining it.

This change fixes that by correctly omitting the user defined
AMI type as well in that case.
@flostadler flostadler requested review from t0yv0, corymhall and a team October 28, 2024 11:19
@flostadler flostadler self-assigned this Oct 28, 2024
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

...scalingConfig,
cluster: cluster,
nodeRole: role,
amiType: "AL2023_ARM_64_STANDARD",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this instead warn the user to not specify amiType here since it is a no-op, or it actually takes effect in other parts of the system?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually takes effect. This causes the ami id to be set in the launch template

@flostadler flostadler merged commit f6a8ce5 into master Oct 28, 2024
34 checks passed
@flostadler flostadler deleted the flostadler/fix-amitype-custom-lt branch October 28, 2024 15:21
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants