helmfile/pkg/tmpl
KUOKA Yusuke 65ee6a2124
fix: "cannot unmarshal !!str `<no value>` into bool" errors in state templates (#645)
Seems like we are affected by https://github.com/golang/go/issues/24963. That is, even though we internally use the template option `missingkey=zero`, in some cases it still prints `<no value>` instead of zero values, which has been confusing the state yaml parsing.

This fixes the issue by naively replacing all the remaining occurrences of `<no value>` in the rendered text, while printing debug logs to ease debugging in the future when there is unexpected side-effects introduced by this native method.

Fixes #553
2019-06-04 13:23:38 +09:00
..
context.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
context_funcs.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
context_funcs_test.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
context_tmpl.go fix: "cannot unmarshal !!str `<no value>` into bool" errors in state templates (#645) 2019-06-04 13:23:38 +09:00
context_tmpl_test.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
file_renderer.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +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