-
Notifications
You must be signed in to change notification settings - Fork 153
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
Use latest kubeVersion as helm parameter when rendering charts in mirror-images #12513
Use latest kubeVersion as helm parameter when rendering charts in mirror-images #12513
Conversation
…ror-images command Signed-off-by: Simon Bein <simontheleg@gmail.com>
/approve |
LGTM label has been added. Git tree hash: 7b444dc42cd888992b1c9a1f927829a61ee39c86
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SimonTheLeg, xrstf The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@SimonTheLeg would it make sense to use the oldest supported version instead? |
@wurbanski I have been contemplating this topic and came to the conclusion that using the oldest supported version is more brittle than using the latest one. My logic behind this is based on that I think it is more likely that the author of a chart will have a version constraint eliminating old versions, than they will have a constraint limiting new versions. |
I forgot we're not using it for anything other than listing images at the moment, nevermind. :) |
Should we backport this? |
yes I think this makes sense. Otherwise the KKP 1.23 installer will not be usable /cherrypick release/v2.23 |
@SimonTheLeg: new pull request created: #12517 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
This PR fixes the issue where the mirror-images command is going to fail when using it with charts that specify a Kubernetes version greater than 1.20. This is currently the case for the consul chart.
Tested with the current installer from the latest KKP Github release:
The reason for this is a little bit entertaining. Helm actually uses a kubeVersion flag to specify how a chart should be rendered. This is by default hardcoded to 1.20 (see https://github.com/helm/helm/blob/main/pkg/chartutil/capabilities.go#L32-L48 & https://github.com/helm/helm/blob/main/pkg/chartutil/capabilities_test.go#L45) and therefore can collide with charts that specify a kubeVersion greater than 1.20.
What type of PR is this?
/kind bug
Special notes for your reviewer:
Two changes in this PR should be reviewed closer:
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: