-
Notifications
You must be signed in to change notification settings - Fork 3
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
Patch resources of the chart without changing the chart #115
Comments
This was the first feature request I had in mind when I thought about how to improve helm! As another idea to consider: Maybe it was also possible to support KRM functions. See https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/api-conventions/functions-spec.md and https://kpt.dev/book/02-concepts/03-functions |
That would be a great feature. Is there a timeline for this feature? |
This is a must-have feature and we plan to add it this year (soon). |
Thanks for your quick reply. This feature will be a absoluty game changer. Ideally, as already mentioned above, I would like the idea of including the patches in bundles. Should it also be possible for the specific patch only to be executed depending on the specific environment? |
Certainly, patches will be environment-specific and can be used similarly to values files. Before implementation, we’ll draft a proposal and post it in this issue so we can discuss the details and consider your suggestions. |
Problem
If the third-party chart does not allow modifications of some resources (e. g. no way to specify securityContext for Pod), then chart consumers must fork the chart and modify it themselves.
Solution (if you have one)
Provide a way to easily patch rendered chart resources on-the-fly. Might look like this:
We could also provide a way to automatically apply patches that are distributed with the chart, so that the user can have a parent chart with patches for the resources in the dependent child charts.
Additional information
Helm 3 has a
--post-renderer
flag which might help with this, but it has its issues:The text was updated successfully, but these errors were encountered: