mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-05 09:11:45 +02:00
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>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
# What is a helmfile? Read here...
|
|
# https://github.com/helmfile/helmfile
|
|
|
|
# Before deployment, export the required env vars
|
|
# export HELM_SECRETS_DRIVER=vault
|
|
|
|
# Commands to deploy:
|
|
# helmfile deps # < download dependencies
|
|
# helmfile template # < template stuff. You might have to be signed into vault
|
|
# helmfile sync # < deploy everything
|
|
# helmfile apply # < deploy diff only
|
|
|
|
helmDefaults:
|
|
wait: true
|
|
timeout: 600
|
|
recreatePods: true
|
|
force: false
|
|
|
|
commonLabels:
|
|
system: argocd
|
|
|
|
releases:
|
|
- name: argocd # name of this release
|
|
namespace: argocd # target namespace
|
|
createNamespace: true # automatically create release namespace (default true)
|
|
labels: # Arbitrary key value pairs for filtering releases
|
|
env: prod
|
|
chart: "." # the chart being installed to create this release, referenced by `repository/chart` syntax
|
|
version: 3.2.2 # the semver of the chart. range constraint is supported
|
|
missingFileHandler: Warn # set to either "Error" or "Warn". "Error" instructs helmfile to fail when unable to find a values or secrets file. When "Warn", it prints the file and continues.
|
|
|
|
# will attempt to decrypt secrets using helm-secrets plugin
|
|
secrets:
|
|
# {{ requiredEnv "HELM_SECRETS_DRIVER" }}
|
|
- values.yaml
|
|
verify: false
|
|
wait: true
|
|
timeout: 600
|
|
recreatePods: true
|
|
force: false
|
|
installed: true
|
|
atomic: true
|
|
cleanupOnFail: false
|