-
Notifications
You must be signed in to change notification settings - Fork 565
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
doc: Configuration and templating tips and tricks #756
Comments
Use |
Including an external file b64-encoded as a helm value #757 |
Selectively inheriting helmfile values to sub-helmfile: #725 |
Leveraging a sub-helmfile to differentiate template params across two or more releases #387 (comment) |
The |
I've seen somewhere a dedicated block for global values, cannot find it in the current docs. It was quite close to this #640 (comment) |
Pinning sub-helmfile version by @osterman:
|
Conditional Release enabled if and only if specific Helmfile value is set: #784 (comment) Probably we can add it under Environments or Environment Values sections. |
How |
Installing Istio with Helmfile: #789 |
Installation ordering: #137 |
Inline and external template snippets for reducing code repetition: #803 |
Erasing environment values with layering and overrides(Use sprig's |
Reusing template of conventional release spec with |
Referencing the release name from other releases, without release templates:
Ref: https://sweetops.slack.com/archives/CE5NGCB9Q/p1568910579018700 |
Reference the cluster name from kubeconfig and reuse it across releases: #852 (comment)
|
Helm v3: Creating and managing namespaces #891 |
how to loop releases dynamically and reference a secret: |
Adding annotations with a post-sync hook:
|
exec some bash inline: #1006 |
Hi @mumoshu do you think it would be possible to extract a large variables assignment snippet (like some complex nested loops to generate a dict or list) somewhere to be reused? So that I don't have to copy paste that all over the place? Like an import that pulls in a precreated variable. |
@Morriz We don't have a way to define custom function so I'm afraid it isn't possible. Perhaps you get similar outcome by using |
Layering values using environment values and |
Thanks for the suggestion, but I tried that and it does not work. Maybe I am doing it wrong? Would love to get a working snippet ;) |
Dynamically generating releases from environment values for DRY |
but that is not even coming close to defining a reusable template imo...or do I fail to see how? Anyway, I guess it's just not possible but can we just say so? For those reading this one day? |
The one solution that is possible is creating a folder with snippet files, each containing the template, and then use |
@Morriz Sorry it wasn't meant to be a reply to you. I've already written tricks to use template/define somewhere else so perhaps you'd better search for it in github search! |
The combination of tpl and readFile would also work. I thought I've written about that too in somewhere else. |
hah, tnx for the quick reply...I guess we covered it extensively now. And yes, I read that from you once I believe. Moving on! |
The use of |
Please don't forget to marshal anything to YAML when making it DRY |
Leveraging @Morriz FYI, this was what I had in my mind when I've suggested #756 (comment) |
Let's gather all the tips and tricks worth included in the documentation, by linking from various questions answered in this repo.
The text was updated successfully, but these errors were encountered: