helmfile/pkg/tmpl
Marcin Kaciuba b1190508b2
feat(template): added secret template function (#1221)
* feat(tmpl): added fetchSecretValue template function

This adds a tmpl `fetchSecretValue` and `expandSecretRefs` function by:
- Adding:
    - `expandSecretRefs` function in tmpl package that uses vals
    package to fetch secrets
    - `fetchSecretValue` function in tmpl package like below but for
    single string value
    - gomock for tests purpose
- Changing:
    - move init of vals package to function (so the same instance can be used for template values and rendering the whole template)

* doc(secret): added doc how to use new tmpl methods

Added example usage of `fetchSecretValue` and `expandSecretRefs`
2020-04-25 21:10:02 +09:00
..
context.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
context_funcs.go feat(template): added secret template function (#1221) 2020-04-25 21:10:02 +09:00
context_funcs_test.go feat: add tmpl function `required` (#1188) 2020-04-10 08:23:42 +09:00
context_tmpl.go feat: Better exec error reporting (#1159) 2020-03-29 10:49:02 +09:00
context_tmpl_test.go feat: add tmpl function `required` (#1188) 2020-04-10 08:23:42 +09:00
expand_secret_ref.go feat(template): added secret template function (#1221) 2020-04-25 21:10:02 +09:00
expand_secret_ref_test.go feat(template): added secret template function (#1221) 2020-04-25 21:10:02 +09:00
expand_secrets_mock.go feat(template): added secret template function (#1221) 2020-04-25 21:10:02 +09:00
file_renderer.go fix: --state-values-set panic: value of type interface {} is not assignable to type string (#680) 2019-06-12 13:35:04 +09:00
file_renderer_test.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
get_or_nil.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
get_or_nil_test.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
text_renderer.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00