helmfile/test/integration/test-cases
Aditya Menon c375b48550
fix: nested helmfile values should replace arrays, not merge element-by-element (#2458)
PR #2367 introduced CLIOverrides to give --state-values-set element-by-element
array merge semantics. However, nested helmfile values (helmfiles[].values:)
were also routed into CLIOverrides, causing their arrays to merge instead of
replace. This broke the pre-v1.3.0 behavior where passing an array via
helmfiles[].values: would fully replace the child's default array.

Add OverrideValuesAreCLI flag to SubhelmfileEnvironmentSpec so the loader can
distinguish CLI flags from nested helmfile values. CLI values continue using
CLIOverrides (element-by-element merge); nested helmfile values now use Values
(Sparse merge strategy → full array replacement).

Fixes #2451

Signed-off-by: Aditya Menon <amenon@canarytechnologies.com>
2026-03-09 18:31:21 +08:00
..
chart-needs
chartify
chartify-jsonPatches-and-strategicMergePatches
chartify-with-non-chart-dir
cli-overwrite-environment-values
deps-kustomization-i-1402/input
deps-mr-1011/input
diff-args
fetch-forl-local-chart/input
happypath
hcl-secrets
helmfile-double-fetch/input
include-template-func
issue-1749/input
issue-1893/input
issue-2097 fix: support OCI chart digest syntax (@sha256:...) (#2398) 2026-02-12 20:20:43 +08:00
issue-2103/input fix: include query params in HTTP getter cache key (#2399) 2026-02-14 09:31:53 +08:00
issue-2247
issue-2269/input fix: helmDefaults.skipRefresh ignored in runHelmDepBuilds (#2415) 2026-02-22 14:13:05 +05:30
issue-2271/input
issue-2275/input
issue-2280/input
issue-2281-array-merge
issue-2291/input
issue-2297-local-chart-transformers/input
issue-2309-kube-context-template
issue-2353-layer-array-replace
issue-2355/input
issue-2409-sequential-kubecontext/input fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
issue-2418/input fix: skip helm repo update when only OCI repos are configured (#2420) 2026-02-25 12:13:20 +08:00
issue-2424-sequential-values-paths/input fix: use absolute baseDir in sequential helmfiles for correct values path resolution (#2425) 2026-02-26 07:47:39 +08:00
issue-2431/input fix: local chart with external dependencies error when repos configured (#2433) 2026-02-28 09:23:04 +08:00
issue-2451-nested-helmfile-array-replace fix: nested helmfile values should replace arrays, not merge element-by-element (#2458) 2026-03-09 18:31:21 +08:00
kubedog-tracking feat: kubedog integration with unified resource handling (#2383) 2026-03-02 17:15:12 +08:00
kustomized-fetch/input
oci-parallel-pull/input
postrender feat: upgrade Helm version to v3.20.0 and v4.1.0 (#2373) 2026-01-23 12:02:58 +08:00
regression/input
secretssops
skip-diff-output
state-values-set-cli-args-in-environments
suppress-output-line-regex
unittest/input feat: add `helmfile unittest` command for helm-unittest integration (#2400) 2026-02-16 09:45:10 +08:00
v1-subhelmfile-multi-bases-with-array-values
yaml-overwrite
chart-needs.sh feat: Ensure repo update is only run once (#2378) 2026-01-29 19:15:44 -05:00
chartify-jsonPatches-and-strategicMergePatches.sh
chartify-with-non-chart-dir.sh
chartify.sh
cli-overwrite-environment-values.sh
deps-kustomization-i-1402.sh
deps-mr-1011.sh
diff-args.sh
fetch-forl-local-chart.sh
happypath.sh
hcl-secrets.sh
helmfile-double-fetch.sh
include-template-func.sh
issue-1749.sh
issue-1893.sh
issue-2097.sh fix: support OCI chart digest syntax (@sha256:...) (#2398) 2026-02-12 20:20:43 +08:00
issue-2103.sh fix: include query params in HTTP getter cache key (#2399) 2026-02-14 09:31:53 +08:00
issue-2247.sh
issue-2269.sh fix: helmDefaults.skipRefresh ignored in runHelmDepBuilds (#2415) 2026-02-22 14:13:05 +05:30
issue-2271.sh
issue-2275.sh
issue-2280.sh
issue-2281-array-merge.sh
issue-2291.sh
issue-2297-local-chart-transformers.sh
issue-2309-kube-context-template.sh
issue-2353-layer-array-replace.sh
issue-2355.sh
issue-2409-sequential-kubecontext.sh fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
issue-2418.sh fix: skip helm repo update when only OCI repos are configured (#2420) 2026-02-25 12:13:20 +08:00
issue-2424-sequential-values-paths.sh fix: use absolute baseDir in sequential helmfiles for correct values path resolution (#2425) 2026-02-26 07:47:39 +08:00
issue-2431.sh fix: local chart with external dependencies error when repos configured (#2433) 2026-02-28 09:23:04 +08:00
issue-2451-nested-helmfile-array-replace.sh fix: nested helmfile values should replace arrays, not merge element-by-element (#2458) 2026-03-09 18:31:21 +08:00
kubedog-tracking.sh feat: kubedog integration with unified resource handling (#2383) 2026-03-02 17:15:12 +08:00
kustomized-fetch.sh
oci-parallel-pull.sh
postrender.sh
regression.sh
secretssops.sh
skip-diff-output.sh
state-values-set-cli-args-in-environments.sh
suppress-output-line-regex.sh
unittest.sh feat: add `helmfile unittest` command for helm-unittest integration (#2400) 2026-02-16 09:45:10 +08:00
v1-subhelmfile-multi-bases-with-array-values.sh
yaml-overwrite.sh