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 to override global variables per-subchart #2076
Comments
I know that the Kolla Kubernetes team solved this problem with a template function. I think @kfox1111 might be able to explain. I'm not sure if there is an existing pattern for Kubernetes Charts charts. Perhaps @prydonius knows. |
Yeah, kolla-kubernetes solves this case in our shared library. Documentation is here: It might be nice to merge some of is functionality into a common helm shared library of helpers? There really isn't anything kolla-kubernetes specific in the code. |
@kfox1111 I am trying to make it much easier to do this in Helm 2.3.0. I added a few new Sprig functions that might help:
I think that what you are doing above might in the future be handled by https://github.com/Masterminds/sprig#lists-functions Unit tests for pluck: https://github.com/Masterminds/sprig/blob/master/functions_test.go#L683-L696 |
Ah. interesting. Yeah, I think those constructs could make it much easier to implement the stuff kolla-kubernetes is doing. If there is a canary build, it should be possible to replace the three macro's here: Should be pretty easy I think to try. |
@sheerun Im closing this due to inactivity but please re-open if you need further assistance. |
I believe this behavior would be intuitive and still have use even with the newer sprig functions. Especially with regards to boolean values, since issues like that described in Masterminds/sprig#111 still exist |
In my usecase I'd like to enable persistence for all subcharts, except redis. Ideally I'd be able to write:
what do you think? sorry if it's already possible, I cannot find documentation..
The text was updated successfully, but these errors were encountered: