helmfile/pkg/config
Aditya Menon 4f275b3667
feat: add Helm 4 support while maintaining Helm 3 compatibility (#2262)
This commit adds comprehensive support for Helm 4 while maintaining
full backward compatibility with Helm 3. The implementation includes:

- Updated helm version detection to support both Helm 3 and Helm 4
- Added HELMFILE_HELM4 environment variable to control Helm version
- Modified helm execution paths to handle version-specific binaries
- Updated helm plugin installation to support split architecture

- Helm 4: Uses split plugin architecture (3 separate .tgz files)
  - helm-secrets.tgz
  - helm-secrets-getter.tgz
  - helm-secrets-post-renderer.tgz
- Helm 3: Continues using single plugin installation
- Updated Dockerfiles, CI workflows, and core installation code

- Helm 4 requires post-renderers to be plugins, not executable scripts
- Created Helm plugin structure for integration tests
- Updated helmfile.yaml templates to dynamically select renderer type
- Added test plugins: add-cm, add-cm1, add-cm2

- Updated integration tests for Helm 3/4 compatibility
- Created Helm 4 variant expected output files
- Fixed test determinism issues (repo cleanup between iterations)
- Added version-specific output filtering for warnings/messages

- Updated workflows to test both Helm 3 and Helm 4
- Matrix testing across Helm versions
- Updated helm-diff to v3.14.0 for compatibility

- Updated README and docs with Helm 4 information
- Added migration guidance
- Updated version requirements

All changes are backward compatible - existing Helm 3 users will
see no behavior changes.



fix: update Helm 4 lint expected output to match filtered output

The grep filter removes the semver warning, so the expected output
should not include it. Updated lint-helm4 files to match the filtered
output (warning removed, no extra blank line).

Signed-off-by: Aditya Menon <amenon@canarytechnologies.com>
2025-11-19 07:49:30 +08:00
..
apply.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
build.go fix --debug flag 2022-10-25 08:24:23 +08:00
cache.go fix --debug flag 2022-10-25 08:24:23 +08:00
config.go Use a regex to match --state-values-set-string arguments (#1902) 2025-02-04 07:59:31 +08:00
deps.go fix --debug flag 2022-10-25 08:24:23 +08:00
destroy.go Create DeleteWait and DeleteTimeout parameters for Destroy (#1177) 2023-12-05 08:38:37 +08:00
diff.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
fetch.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00
global.go feat: add Helm 4 support while maintaining Helm 3 compatibility (#2262) 2025-11-19 07:49:30 +08:00
global_test.go add support for HELMFILE_FILE_PATH envvar to set -f (#1255) 2024-01-03 21:37:49 +08:00
init.go Add subcommand init for checks and installs helmfile deps (#389) 2022-11-03 14:51:30 +08:00
lint.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
list.go fix --debug flag 2022-10-25 08:24:23 +08:00
repos.go fix --debug flag 2022-10-25 08:24:23 +08:00
show-dag.go Update DAG with dependencies (#1477) 2024-04-27 07:37:28 +08:00
status.go fix --debug flag 2022-10-25 08:24:23 +08:00
sync.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
template.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
test.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00
write-values.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00