helmfile/pkg
Danny Shemesh 71bb7354e7
Fix: populate .Values regardless of prestate success (#1202)
This commit proposes a potential solution for
https://github.com/roboll/helmfile/issues/1201

The gist is that, if prestate rendering fails, for any reason,
we do not populate the .Values in the second pass renderer.

I think that what have been expected in this case is to populate the
.Values irregardless.

pkg/app/two_pass_renderer.go
- Migrated to use finalEnv.GetMergedValues()

pkg/environment/environment.go
- Introduced GetMergedValues, which merges the environment's defaults
and current values, and then casts the keys to string;
This was previously defined in HelmState.Values() - however, as this
method is only concerned with the environment, I think it's more
appropriate for it to sit here.

pkg/state/state_exec_tmpl.go
- Extracted out HelmState.Values() to environment.go, see above
2020-04-17 09:18:01 +09:00
..
app Fix: populate .Values regardless of prestate success (#1202) 2020-04-17 09:18:01 +09:00
argparser fix: helmDefaults.kubeContext ignored in `helm diff` of `helmfile apply` (#682) 2019-06-12 16:49:19 +09:00
environment Fix: populate .Values regardless of prestate success (#1202) 2020-04-17 09:18:01 +09:00
event feat: Enhance postsync event to include `.Error` (#882) 2019-10-17 08:27:12 +09:00
exectest Add option to suppress diff on apply (#1092) 2020-02-05 21:29:55 +09:00
helmexec feat: `helmBinary` in helmfile.yaml (#1160) 2020-03-29 17:51:07 +09:00
maputil Add indexed key support to --state-values-set (#1042) 2019-12-17 07:31:42 +09:00
remote Fix recursion for helmfiles pulled from git (#854) 2019-09-14 05:49:59 +02:00
state Fix: populate .Values regardless of prestate success (#1202) 2020-04-17 09:18:01 +09:00
testhelper fix: Fix `needs` to work for upgrades and when selectors are provided (#922) 2019-11-02 14:04:16 +09:00
tmpl feat: add tmpl function `required` (#1188) 2020-04-10 08:23:42 +09:00