helmfile/state
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
..
create.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
create_test.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
environment.go feat: Environment Secrets (#274) 2018-09-02 21:07:35 +09:00
release_filters.go fix: prevent panicing on invalid selector format (#323) 2018-09-09 17:20:44 +09:00
state.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
state_test.go feat: add devel flag support (#313) 2018-09-08 08:32:14 +09:00