helmfile/pkg/app
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
..
version feat: Persist Helmfile version in helmfile.lock for version compatibility check (#1016) 2019-12-11 09:19:18 +09:00
app.go feat: `helmfile diff --detailed-exitcode` should also detect deletions (#1186) 2020-04-10 08:22:33 +09:00
app_test.go feat: `helmfile diff --detailed-exitcode` should also detect deletions (#1186) 2020-04-10 08:22:33 +09:00
ask.go feat: helmfile as a go library (#639) 2019-06-04 09:12:00 +09:00
config.go feat: add option `--include-tests` for diff and apply command (#1179) 2020-04-05 17:43:54 +09:00
constants.go feat: "bases" for easier layerina 2019-05-13 21:48:00 +09:00
constants_test.go Various U/X improvements for `helmfile apply` (#586) 2019-05-12 16:26:11 +09:00
context.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
desired_state_file_loader.go feat: Emit clear error message instead of panic on empty chart name (#1171) 2020-04-04 15:32:22 +09:00
destroy_test.go feat: `helmfile diff --detailed-exitcode` should also detect deletions (#1186) 2020-04-10 08:22:33 +09:00
diff_test.go feat: `helmfile diff --detailed-exitcode` should also detect deletions (#1186) 2020-04-10 08:22:33 +09:00
errors.go feat: Opt-out dep-builds and repo-updates (#463) 2019-02-04 12:07:25 +09:00
load_opts.go feat: `helmBinary` in helmfile.yaml (#1160) 2020-03-29 17:51:07 +09:00
mocks_test.go feat: `helmBinary` in helmfile.yaml (#1160) 2020-03-29 17:51:07 +09:00
run.go feat: `helmfile diff --detailed-exitcode` should also detect deletions (#1186) 2020-04-10 08:22:33 +09:00
two_pass_renderer.go Fix: populate .Values regardless of prestate success (#1202) 2020-04-17 09:18:01 +09:00
two_pass_renderer_test.go Update documentation and tests for .Values (#839) 2019-09-14 05:35:16 +02:00