-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Allow for per-version kustomize options #5533
Comments
Thank you for the proposal @snuggie12 , I think we should prioritize it to enable upgrading to the latest 3.x kustomize. The How about if we support data:
# default kustomize build options
kustomize.buildOptions: --load_restrictor none
# register one more kustomize version
kustomize.path.v3.9.1: /usr/local/bin/kustomize-3.9.1
# specifies build options for new kustomize verison
kustomize.buildOptions.v3.9.1: `--enable_kyaml=true` What do you think? |
Oh yeah, much better idea. They actually just released 4.x in kind of a hurry due to licensing issues. However, I think it's 3.9.2 that will give you all issues because yaml that was accepted before is not now. Good luck with that fun. |
Can I pick this issue? Happy to raise a PR :) |
Thanks Chetan, much appreciated! |
@chetan-rns Just as a heads-up, Kustomize also changed the syntax for some of their Maybe we can consider a knob for this with this change as well? Unfortunately, I cannot find the related change/PR in Kustomize's repository anymore, but I believe it must have changed somewhere between v3.8.1 and v3.8.9 (yes, that's within a patch release) |
Thanks for the heads up, will take a look |
Summary
Whatever is passed into
data.kustomize.buildOptions
is universally applied to all versions of kustomize. If you use an option from a newer version that doesn't exist on an older version you'll get errors for that application.Motivation
I believe kustomize 3.9.2 introduced
--enable_kyaml=true
as the default. It also has the chart inflator as a builtin plugin so it eliminates the need for the custom config management plugin "kustomized-helm". However, this option doesn't exist in older versions such as 3.5.X and we have a few apps that needed that.Proposal
IDK if this breaks backwards compatibility, but was thinking you could change
data.kustomize.version.v3.5.1
to bedata.kustomize.version.v3.5.1.path
and add the possibility ofdata.kustomize.version.v3.5.1.buildOptions
.The text was updated successfully, but these errors were encountered: