fix: Karpenter 1.0 installation fails to create default EC2NodeClass #250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #249
Description of changes:
Fixed misspelled function names for getting EKS AMIs.
Updated the logic for getting EKS AMIs for the default EC2NodeClass.
With the release of Karpenter v1.0
spec.amiSelectorTerms
is now a required field for EC2NodeClass. This posed an issue as the previous logic did not create this field for Bottlerocket AMIs and thus caused thedefault
EC2NodeClass creation to fail.Starting with Karpenter v1.0,
spec.amiSelectorTerms.alias
is now available. The proposed changes simplify this logic so that only theamiFamily
and latest AMI release version need to be known and Karpenter will figure out the AMIs to be used.The
alias
field is now passed to thedefault
EC2NodeClass in the formatami-family@ami-version
. For example:By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.