-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Set the version of an addon with a numeric version that has no prefix or suffix #3646
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very tidy! just a couple of questions right now
Co-authored-by: Claudia <claudiaberesford@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but leaving to @aclevername to approve since he knows the area better 🎉
Co-authored-by: Jake Klein <jakelarsj@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Description
Closes #3574.
The current behaviour for setting the version of an addon when creating or updating it is to specify the full version, such as
v1.7.5-eksbuild.2
orv1.7.5-eksbuild.1
, or set tolatest
, which will list and select the latest version available for this addon.This PR lets the user specify a shortened form of the version such as
v1.7.5
or1.7.5
that does not have aneksbuild-1
oreksbuild-2
suffix, whether it does or does not have av
prefix. It then finds the latest build for this numeric version using the same logic as whenlatest
lists and selects the latest version for an addon.Demo
1.7.5
1.7.7
Also:
eksctl
logic).pkg/actions/addon/update_test.go
, such as for when the version is not set andeksctl
preserves the version (but may suggest a more updated version).update
unit tests to remove repeating code.Checklist
README.md
, or theuserdocs
directory)area/nodegroup
) and kind (e.g.kind/improvement
)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯