-
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
support for more helm template args #4926
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: natasha41575 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 |
f19e212
to
dfc606a
Compare
/test kustomize-presubmit-master |
@natasha41575: 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. |
9ea3313
to
793594e
Compare
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator_test.go
Outdated
Show resolved
Hide resolved
9804a00
to
5a399b3
Compare
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go
Outdated
Show resolved
Hide resolved
46652b9
to
88982fc
Compare
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go
Outdated
Show resolved
Hide resolved
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go
Outdated
Show resolved
Hide resolved
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go
Outdated
Show resolved
Hide resolved
plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator_test.go
Outdated
Show resolved
Hide resolved
88982fc
to
9e51d97
Compare
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 you want to add the charts example to api/krusty/charts
dir?
9e51d97
to
9b4fa1e
Compare
ea79234
to
7973326
Compare
7973326
to
32789d2
Compare
api/krusty/testdata/helmcharts/multiple-values-files/charts/test-chart/values.yaml
Outdated
Show resolved
Hide resolved
fs := th.GetFSys() | ||
require.NoError(t, fs.MkdirAll(filepath.Join(thDir, "templates"))) | ||
|
||
copyFileIntoHarness(th, filepath.Join(chartDir, "Chart.yaml"), filepath.Join(thDir, "Chart.yaml")) |
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.
Is this series essentially copying the full the directory contents, or are we avoiding some files? Fwiw I see kyaml has a CopyDir
.
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.
Thanks! I wasn't aware of the CopyDir in kyaml. I changed CopyDir
to accept an fSys argument and used it. (I also updated localize to use kyaml.CopyDir instead of writing its own)
Edit: Looks like localize has some other assumptions that it makes actually, so I'm going to leave that alone
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.
I didn't know about it either fwiw... I just guessed that it might exist (we do so much FS manipulation!), searched for it and got lucky. 😄
e3bb99a
to
0093a22
Compare
d2b2027
to
8527545
Compare
8527545
to
f43c940
Compare
/lgtm |
Fix #4219
Fix #3816
Fix #3831
Fix #4914
And a few other args for
helm template
. I added an krusty test for the multiple values files as that one is the more complicated bit, and a unit test for the rest to ensure that the flags are getting added to thehelm template
invocation correctly.As a note, I have already made a lot of these changes to the kpt render-helm-chart KRM function which forks off the kustomize plugin, so we can think of this PR as finally pushing those changes upstream.