helmfile/pkg
Shane Starcher 6673ebad84
fix: skip chartify for build command jsonPatches (#2212)
The build command is intended to be a read-only inspection command that
outputs the helmfile state. However, when releases use jsonPatches,
strategicMergePatches, or transformers, the chart preparation step
triggers chartify, which runs helm template and requires dependencies to
be built.

This causes two issues:
1. helm template is executed unnecessarily for a simple state inspection
2. Missing chart dependencies cause errors even with SkipDeps enabled

This change modifies PrepareCharts to filter out releases that require
chartify when the command is "build". These releases are excluded from
chart preparation, preventing helm template from being invoked.

The state output will still include these releases, but their charts
won't be processed during the build operation.

Signed-off-by: Shane Starcher <shanestarcher@gmail.com>
2025-10-05 07:39:54 +08:00
..
app fix typos in both comment and error message (#2199) 2025-09-26 15:46:53 -04:00
argparser fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
config Add missing --timeout flag to helmfile sync command with documentation (#2148) 2025-08-27 14:32:02 +08:00
environment update test to table driven with assertions & test GetMergedValues (#1721) 2024-09-27 05:27:19 +08:00
envvar refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3 (#2039) 2025-05-15 10:21:37 -04:00
errors build(deps): bump golangci/golangci-lint-action from 6 to 7 (#1975) 2025-03-28 07:52:06 +08:00
event feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
exectest feat: add skip json schema validation during the install /upgrade of a Chart (#1737) 2024-10-24 20:53:18 +08:00
filesystem refactor(filesystem): add CopyDir method and optimize Fetch function (#2111) 2025-07-28 16:10:25 -04:00
hcllang feat: update go version and adjust dependencies in Dockerfile and go.mod (#1722) 2024-09-30 09:21:44 -04:00
helmexec Fix panic when helm isn't installed (#2169) 2025-09-09 07:15:46 +08:00
maputil chore: support parsing any type with `fromYaml` (#2017) 2025-04-25 06:56:01 +08:00
plugins bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
policy build(deps): bump golangci/golangci-lint-action from 6 to 7 (#1975) 2025-03-28 07:52:06 +08:00
remote Migrate AWS SDK from v1 to v2 to resolve deprecation warnings (#2202) 2025-09-30 09:59:00 +08:00
runtime refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
state fix: skip chartify for build command jsonPatches (#2212) 2025-10-05 07:39:54 +08:00
testhelper replace custom diff in tests using testify (#1215) 2023-12-13 06:32:38 +08:00
testutil feat: add namespace info in syncRelease and diffRelease (#1609) 2024-07-16 09:47:00 +08:00
tmpl refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
yaml refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00