helmfile/pkg
Yusuke Kuoka 8e50dbc46d Fix helmfile deps not to remove entries for charts that are being chartified
When chartify is involved due to the use of `forceNamespace`, `strategicMergePatches`, `jsonPatches`, and so on, We had been internally mutating the Release.Chart with the path to the local temporary directory that contains the modified version of the chart.

This resulted in us unintentionally making `helmfile deps` to remove entries for the chart being modified out of helmfile.lock file, which resulted in issues like #2110.

To be clear, although the original issue is reported to occur for `strategicMergePatches`, I believe that it occurered also for any remote charts using `jsonPatches` and `forceNamespace` too.

I also believe this has been the issue since our introduction of chartify (maybe a year or so ago??), and I guess why it took so much time to be found and reported is that not so many people with chartify in combination with `helmfile deps` 🤔

Lastly, this changes chart names surfaced in the various log output from Helmfile, from temporary chart paths to the chart name/path declared in the helmfile.yaml. I think this is generally a good change, no fear of being a breaking change. But if anyone has any concern about that, please feel free to comment/report/etc.

Ref https://github.com/roboll/helmfile/issues/2110

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-04-06 02:12:08 +00:00
..
app Fix helmfile deps not to remove entries for charts that are being chartified 2022-04-06 02:12:08 +00:00
argparser update args_test.go unittest 2022-04-05 06:26:42 +08:00
environment Fix: populate .Values regardless of prestate success (#1202) 2020-04-17 09:18:01 +09:00
event Fix various golangci-lint errors (#2059) 2022-02-12 20:28:08 +09:00
exectest Fix various golangci-lint errors (#2059) 2022-02-12 20:28:08 +09:00
helmexec [fix] unclosed file stream when creating temporary decrypted files 2022-04-05 22:52:17 +02:00
maputil Fix various golangci-lint errors (#2059) 2022-02-12 20:28:08 +09:00
plugins feat(template): added secret template function (#1221) 2020-04-25 21:10:02 +09:00
remote remove ioutil usage in all project 2022-04-03 15:53:19 +08:00
state Fix helmfile deps not to remove entries for charts that are being chartified 2022-04-06 02:12:08 +00:00
testhelper Fix various golangci-lint errors (#2059) 2022-02-12 20:28:08 +09:00
testutil mv captureStdout as public func 2022-04-03 22:24:38 +08:00
tmpl add unittest for RequiredEnv func 2022-04-05 22:53:07 +08:00