helmfile/pkg/state
Yusuke Kuoka 9b64d65d94
feat: Stabilize helmfile-diff output (#1622)
This finishes the work started at #1619 by introducing the following changes:

- You can now set `HELMFILE_TEMPDIR` and `CHARTIFY_TEMPDIR` as the directory to persist temporary values files rendered by helmfile and temporary charts generated by chartify. Note that chartify is used internally when you use kustomize integration or raw K8s manifests as a chart.
- Helmfile uses the hash sum of the release config and the values file content in the file name of the temporary values file.

  In combination with `HELMFILE_TEMPDIR` and `CHARTIFY_TEMPDIR`, this enables helmfile to use the stable file names for temporary values files, which contribute to stabilize log messages like `Comparing release=appset, chart=PATH/TO/TEMPORARY/CHART`, where the `PATH/TO/TEMPORARY/CHART` had been randomized due to formerly random helmfile tempdir and temporary values file names, and random chartify tempdir.

You can try this feature with a script like:

```
tempdir=$(mktemp -d -t helmfile)

HELMFILE_TEMPDIR=${tempdir} CHARTIFY_TEMPDIR=${tempdir} helmfile diff

rm -rf ${tempdir}
```
2020-12-15 10:24:27 +09:00
..
testdata Add regression tests for environment values merge (#1170) 2020-04-04 14:27:29 +09:00
chart_dependency.go Append --force-update for specific helm versions. (#1494) 2020-10-12 09:20:55 +09:00
create.go Don't append --tiller-namespace flag when running helm3 (#1594) 2020-12-13 10:21:12 +09:00
create_test.go Fix the logic of helmfile deps and add tests. (#1588) 2020-11-19 09:29:59 +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 support for Kustomize Transformers (#1592) 2020-11-19 09:33:05 +09:00
release.go feat: `helmfile build --embed-values` to embed release values and secrets into the output (#1436) 2020-08-29 13:18:17 +09:00
release_error.go Fix misleading `helmfile diff` output (#1174) 2020-04-04 17:39:20 +09:00
release_filters.go Treat selector with multiple conditions an AND (#1478) 2020-09-15 09:56:05 +09:00
selector_test.go Fix concurrent-map-iteration-and-write errors while running release hooks (#1534) 2020-10-13 14:49:01 +09:00
state.go feat: Stabilize helmfile-diff output (#1622) 2020-12-15 10:24:27 +09:00
state_exec_tmpl.go Fix concurrent-map-iteration-and-write errors while running release hooks (#1534) 2020-10-13 14:49:01 +09:00
state_exec_tmpl_test.go Fix concurrent-map-iteration-and-write errors while running release hooks (#1534) 2020-10-13 14:49:01 +09:00
state_gogetter_test.go Fix go-getter URL in chart to actually work (#1405) 2020-08-08 11:01:47 +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 the logic of helmfile deps and add tests. (#1588) 2020-11-19 09:29:59 +09:00
storage.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
temp.go feat: Stabilize helmfile-diff output (#1622) 2020-12-15 10:24:27 +09:00
temp_rand.go feat: Stabilize helmfile-diff output (#1622) 2020-12-15 10:24:27 +09:00
temp_test.go feat: Stabilize helmfile-diff output (#1622) 2020-12-15 10:24:27 +09:00
types.go Re-add Release.Namespace in release values.yaml templates (#1466) 2020-09-10 21:08:20 +09:00
util.go Add support for ChartCenter (#1492) 2020-09-21 15:31:24 +09:00
util_test.go Add support for ChartCenter (#1492) 2020-09-21 15:31:24 +09:00