fix: support helm v4 beside v3#6016
Conversation
|
Welcome @hmilkovi! |
|
Hi @hmilkovi. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
This PR has multiple commits, and the default merge method is: merge. DetailsInstructions 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-sigs/prow repository. |
|
I have changed tests to be done with V4. I was thinking if I should implement to run tests with both versions of Helm? |
|
Considering that Helm v3 is likely installed in the environment, I believe we need code and tests that can support both v3 and v4 environments. |
|
/ok-to-test |
OK, I understand. |
|
I agree as I didn't want to make it only Helm V4 as many people will still use V3 and that would be a breaking change. I have added wrapper for Helm tests to be run for multiple versions in |
|
/retest |
|
/retest-required |
|
@koba1t can you please check when you have time, sorry for direct ping |
|
Sorry for misunderstanding message. After checking I propose that we add install of Helm before tests. I just not sure if we should support also Windows here as I don't have a Windows installation and want to avoid if possible. If I see correctly on master branch Helm tests are also skipped, checked random commit where tests passed: |
|
/retest-required |
|
Tested it with Helm V3 and V4 locally. Discovered relation to #5971:
@Skaronator Can you please jump in to give a bit more light if we expect it to render this internal annotation or remove it? kustomize/api/resource/resource.go Line 52 in 008b7a0 I can do either way, I want to fix the Helm integration tests. Many thanks for your time. |
|
/retest-required |
|
@koba1t Can you please check when you have time? Tests should pass now. |
|
Hi @hmilkovi After seeing your PR, I realized that it is difficult to balance helmv3 and helmv4 tests with the current test code. I think that the current test seems to be tested only with helmv4 binary. So, could you please modify this PR to include only the following file without including any changes to testing or CI? I'm thinking of introducing testing for helmv4 in a separate PR. I'm sorry that the implementation policy has changed, but please update this PR or create a separate PR. |
|
I agree, all fine don't worry. I have kept changes related only to Helm:
Related to tests I want to just keep this as it fixes tests to pass (not related to Helm version):
|
… it does nothing features.
ca800c4 to
54848c1
Compare
|
Thank you @hmilkovi /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hmilkovi, koba1t, Skaronator The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
We have been waiting very long for this bugfix, so I am really glad to see it finally merged. Would it be possible to cut a release containing the fix ASAP, @koba1t? |
|
A new release has been created that fixes this issue |
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize) | patch | `v5.8.0` → `v5.8.1` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>kubernetes-sigs/kustomize (kubernetes-sigs/kustomize)</summary> ### [`v5.8.1`](https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize/v5.8.1) [Compare Source](kubernetes-sigs/kustomize@kustomize/v5.8.0...kustomize/v5.8.1) #### Introduction This release completes a fix for namespace propagation that occurred in v5.8.0. [#​6031 (comment)](kubernetes-sigs/kustomize#6031 (comment)) Also addressed the breaking changes introduced in helm v4. [#​6016](kubernetes-sigs/kustomize#6016) #### fix [#​5990](kubernetes-sigs/kustomize#5990): fix: allow empty patches files [#​6016](kubernetes-sigs/kustomize#6016): fix: support helm v4 beside v3 [#​6038](kubernetes-sigs/kustomize#6038): Fix a failing test [#​6044](kubernetes-sigs/kustomize#6044): Fix namespace propagation problem at v5.8.0 #### Dependencies [#​6057](kubernetes-sigs/kustomize#6057): Upgrade json-patch to v4.13.0 to remove pkg/errors dependency #### chore [#​6065](kubernetes-sigs/kustomize#6065): Update kyaml to v0.21.1 [#​6066](kubernetes-sigs/kustomize#6066): Update cmd/config to v0.21.1 [#​6067](kubernetes-sigs/kustomize#6067): Update api to v0.21.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Ni4yIiwidXBkYXRlZEluVmVyIjoiNDIuOTYuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
This PR fixes Helm V4 issues.
Helm V4 is backward compatible with V3 helm charts and
-cis not needed for V3 Helm (tested it).This is fix for error I experience also #6013
Many thanks in advance for viewing this PR.