Helmfile: How to inherit values from the parent to the child helmfile?

Created on 26 Jun 2019  路  3Comments  路  Source: roboll/helmfile

We are trying to use helmfile in our pipeline. For this we hoped to use a parent helmfile (with repository configuration and helm-defaults) and subhelmfiles that INHERIT from this master helmfile.

Unfortunately this was not possible to achieve.

Are we missing out something?

question

Most helpful comment

@RafalMaleska What do you want to inherit?

One of the rules of helmfile is that each sub-helmfile should be usable independently. So let's assume that your sub-helmfile should be complete on its own i.e. should work without inheritance at all.

It does support inherting values expicitly from the parent to the sub-helmfiles by using this syntax:

helmfiles:
- path: path/to/subhelmfile.yaml
   values:
   - foo: {{whatever available in the parent}}

Does it help?

All 3 comments

@RafalMaleska What do you want to inherit?

One of the rules of helmfile is that each sub-helmfile should be usable independently. So let's assume that your sub-helmfile should be complete on its own i.e. should work without inheritance at all.

It does support inherting values expicitly from the parent to the sub-helmfiles by using this syntax:

helmfiles:
- path: path/to/subhelmfile.yaml
   values:
   - foo: {{whatever available in the parent}}

Does it help?

@mumoshu thank You very much.

We have established something similar with templating and including it in each subhelmfile. But Your solution is much much cleaner.

Thank You

@RafalMaleska Glad to help!

I'm now closing this as resolved. Please feel free to join your slack channel if you have any further questions!

Was this page helpful?
0 / 5 - 0 ratings