helmfile/tmpl
David Genest 7bfb58c0e4 feat: double render the helmfile (#308)
This allows using the environment values defined in the environments: section of helmfile.yaml to be used from other sections of the file.

This works by having two template renderers, the first-pass and the second-pass renderer.

The first-pass render renders a helmfile.yaml template with replacing template functions has side-effects with noop. So, use only funcs that don't have side-effects to compose your environment values.

Then the second-pass renderer renders the same helmfile.yaml template, but with the environment values loaded by the first-pass renderer.

The implementation uses a buffer instead of re-reading the file twice.

Resolves #297
2018-09-12 08:55:42 +09:00
..
context.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
file.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
funcs.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
funcs_test.go feat: Template functions to replace `set`s (#242) 2018-08-28 22:00:51 +09:00
tmpl.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
tmpl_test.go feat: Environment and Environment Values (#267) 2018-08-31 22:59:27 +09:00