helmfile/pkg/state
KUOKA Yusuke b85243a6b4
Fix various issues in chart preparation (#1400)
In #1172, we accidentally changed the meaning of prepare hook that is intended to be called BEFORE the pathExists check. It broke the scenario where one used a prepare hook for generating the local chart dynamically. This fixes Helmfile not to fetch local chart generated by prepare hook.

In addition to that, this patch results in the following fixes:

- Fix an issue that `helmfile template` without `--skip-deps` fails while trying to run `helm dep build` on `helm fetch`ed chart, when the remote chart has outdated dependencies in the Chart.lock file. It should be up to the chart maintainer to update Chart.lock and the user should not be blocked due to that. So, after this patch `helm dep build` is run only on the local chart, not on fetched remote chart.
- Skip fetching chart on `helmfile template` when using Helm v3. `helm template` in helm v3 does support rendering remote charts so we do not need to fetch beforehand.

Fixes #1328
May relate to #1341
2020-08-06 09:06:25 +09:00
..
testdata Add regression tests for environment values merge (#1170) 2020-04-04 14:27:29 +09:00
chart_dependency.go Fix various issues in chart preparation (#1400) 2020-08-06 09:06:25 +09:00
create.go Do cleanup decrypted env secrets files (#1304) 2020-06-16 08:59:48 +09:00
create_test.go Do cleanup decrypted env secrets files (#1304) 2020-06-16 08:59:48 +09:00
environment.go feat: Advanced Templating (#823) 2019-08-31 14:31:31 +09:00
envvals_loader.go Add the ability to load a remote environment values file (#1296) 2020-06-11 10:04:01 +09:00
envvals_loader_test.go Add the ability to load a remote environment values file (#1296) 2020-06-11 10:04:01 +09:00
helmx.go Add ability to use go-getter for fetching remote manifests directory as chart (#1374) 2020-07-23 00:30:16 +09:00
release.go Allow combining valuesTemplate and values, same for setTemplate (#938) 2019-11-15 08:52:10 +09:00
release_error.go Fix misleading `helmfile diff` output (#1174) 2020-04-04 17:39:20 +09:00
release_filters.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
state.go Fix various issues in chart preparation (#1400) 2020-08-06 09:06:25 +09:00
state_exec_tmpl.go Fix: populate .Values regardless of prestate success (#1202) 2020-04-17 09:18:01 +09:00
state_exec_tmpl_test.go fix: Fix `needs` to work for upgrades and when selectors are provided (#922) 2019-11-02 14:04:16 +09:00
state_run.go feat: GA of Kustomize and K8s manifests support (#1172) 2020-05-27 11:42:43 +09:00
state_test.go Fix and enhancement to repository update (#1383) 2020-07-28 10:17:43 +09:00
storage.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
types.go feat: state values (#647) 2019-06-04 16:34:02 +09:00
util.go fix: absolute chart path (#753) 2019-07-12 22:37:54 +09:00
util_test.go fix: absolute chart path (#753) 2019-07-12 22:37:54 +09:00