-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: local helm chart with version but no repo #5293
Conversation
This PR has multiple commits, and the default merge method is: merge. 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. |
Welcome @ardikabs! |
Hi @ardikabs. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. 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. |
hi @ardikabs can you refer #5293 (comment) to sign the cla first? so that we could proceed your PR. Thanks! |
Hi @charles-chenzz , signed, thank you! |
/ok-to-test |
@charles-chenzz Were you planning to review this PR? That would be super helpful |
/cc |
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator_test.go
Outdated
Show resolved
Hide resolved
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator_test.go
Show resolved
Hide resolved
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.
do an initial review, will let other reviews dives in and see what they say
0604e2c
to
47d531a
Compare
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator_test.go
Show resolved
Hide resolved
Yes, I understand that testing multiple versions of helmChart. I believe that the test may add outside of HelmChartInflationGenerator_test.go file. |
ah I see, got your point @koba1t, aside from adding another test for multiple helm charts as you mentioned outside of the plugin directory, are we already aligned on the test case for the |
@ardikabs So, This PR has a conflict file from the master branch. Could you rebase to master? |
* Fix using same helm chart with different versions * Fix p.ValuesFile when version is set * Updated: Fix using same helm chart with different versions * Add test for issue kubernetes-sigs#4813 * Use if/else for readability, add version check to absChartHome
fix kubernetes-sigs#5163 Signed-off-by: Ardika Bagus <[email protected]>
Signed-off-by: Ardika Bagus <[email protected]>
… version Signed-off-by: Ardika Bagus <[email protected]>
@koba1t , I've addressed the conflict after the rebase. Thanks! |
@ardikabs |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardikabs, koba1t 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 |
I believe this is not a backwards compatible change, as the directory where the chart is saved has now changed.
It's no longer possible to store a helm chart in the same folder. |
@farioas , could you show the example of the manifest? because this PR use case is when you are expected to use a chart from remote, but when you expect to refer chart in the same folder, you don't need to provide It means this changes should be backward compatible if we refer to using a local chart (without |
Sure. Here's the real world example. I have base dir which is used to store charts:
So, when I run On another "overlay" layer I have this:
After this change these paths will change on each helm chart release, so whenever I update the helm chart, I have to overhaul over 100+ folders to append the version.
|
@farioas This PR, unfortunately, doesn't align to fulfill your scenario but solves the upgrading of the helm chart version intuitively (without the need to delete the chart folder). |
@farioas kustomize/plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go Lines 105 to 110 in 0c461d6
I think looks like your use case is covered by omitting that value. If you want to other scenarios, Could you describe your use case? Hi @ardikabs |
That's a part of an automated pipeline:
I understand why you made this improvement, thank you for your work. I'll make changes in my workflow to rename folder after pull. |
Fixes #5163.
Problem Statement:
I have a use case working with Kustomize and the Helm chart in the ArgoCD, but apparently updating the Helm chart version didn't work as expected. Using Kustomize v5.0.2 actually solved our case, however, the related fix has been reverted because of breaking changes as detailed in #5163 (comment).
I am borrowing the codes from this PR, with adding another check from the
repo
field, assuming that the use of therepo
is considered referring to a remote helm chart.