helmfile/test/integration/test-cases
yxxhero 781d28a47a
feat: add defaultInherit for automatic release template inheritance (#2600)
* feat: add defaultInherit for automatic release template inheritance

Add a top-level defaultInherit field to helmfile.yaml that automatically
applies template inheritance to all releases without requiring explicit
inherit on each release.

The field accepts a single template name as a string or a list of
template names. Releases that already explicitly inherit from the same
template are not duplicated.

Fixes #2599

Signed-off-by: yxxhero <aiopsclub@163.com>

* style: fix gci formatting in app_template_test.go

Signed-off-by: yxxhero <aiopsclub@163.com>

* fix: correct relative chart path in integration test

Signed-off-by: yxxhero <aiopsclub@163.com>

* fix: use absolute chart path in bad-helmfile test

Signed-off-by: yxxhero <aiopsclub@163.com>

* fix: use clean chart path in bad-helmfile test

Signed-off-by: yxxhero <aiopsclub@163.com>

* fix: use dir variable for chart path

Signed-off-by: yxxhero <aiopsclub@163.com>

* test: fix flaky defaultInherit integration assertions

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d0884e8e-8b1b-456d-8250-dec1566b8a37

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: tighten defaultInherit integration assertions

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d0884e8e-8b1b-456d-8250-dec1566b8a37

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: harden release block parsing in issue-2599 case

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d0884e8e-8b1b-456d-8250-dec1566b8a37

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: make issue-2599 assertions format-tolerant

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d0884e8e-8b1b-456d-8250-dec1566b8a37

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: fix section extraction and regex matching in issue-2599 case

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d0884e8e-8b1b-456d-8250-dec1566b8a37

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* fix: sanitize defaultInherit values and dedupe applied templates

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/85a8e815-3701-4b48-a28d-6bb2d50a3b40

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* chore: address validation feedback on defaultInherit fixes

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/85a8e815-3701-4b48-a28d-6bb2d50a3b40

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* fix: sanitize releaseInherit entries in applyDefaultInherit; add cleanup trap and quote vars in integration test

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/1fbf62d5-7ce2-42e5-898b-30151c0c1ef9

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* refactor: combine releaseInherit loops in applyDefaultInherit to avoid double TrimSpace; clarify test comment

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/1fbf62d5-7ce2-42e5-898b-30151c0c1ef9

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: align default inherit tests with yaml wrapper and assertions

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/3ea9b8e4-633f-43c4-899f-e063ec576486

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: address review feedback on defaultInherit tests

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/3ea9b8e4-633f-43c4-899f-e063ec576486

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

* test: fix issue-2599 integration script helmfile invocation

Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/9452bb65-7086-459f-b5ae-0b00c1e021eb

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>

---------

Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-20 18:21:03 +08:00
..
chart-deps-condition
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
fetch-write-output/input
happypath
hcl-secrets
helmfile-double-fetch/input
include-template-func
issue-1749/input
issue-1893/input
issue-2097
issue-2103/input
issue-2247
issue-2269/input
issue-2271/input Add jsonPatches regression coverage for chartify lookup rendering (#2586) 2026-05-20 17:02:45 +08:00
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
issue-2418/input
issue-2424-sequential-values-paths/input
issue-2431/input
issue-2451-nested-helmfile-array-replace
issue-2502-race-condition-local-chart/input
issue-2503-kustomize-fetch/input
issue-2515/input
issue-2544/input
issue-2596-local-deps-multiple-files/input fix: normalize dependency chart path before DirectoryExistsAt check (#2598) 2026-05-20 08:44:14 +08:00
issue-2599-default-inherit/input feat: add defaultInherit for automatic release template inheritance (#2600) 2026-05-20 18:21:03 +08:00
kubedog-tracking
kustomized-fetch/input
oci-parallel-pull/input
postrender Bump Helm support to 3.21.0 and 4.2.0 (#2588) 2026-05-15 13:14:02 +08:00
postrender-defaults-args/input
regression/input
secretssops
skip-diff-output
state-values-set-cli-args-in-environments
suppress-output-line-regex
unittest/input
v1-subhelmfile-multi-bases-with-array-values
yaml-overwrite
chart-deps-condition.sh
chart-needs.sh
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
fetch-write-output.sh
happypath.sh
hcl-secrets.sh
helmfile-double-fetch.sh
include-template-func.sh
issue-1749.sh
issue-1893.sh
issue-2097.sh
issue-2103.sh
issue-2247.sh
issue-2269.sh
issue-2271.sh Add jsonPatches regression coverage for chartify lookup rendering (#2586) 2026-05-20 17:02:45 +08:00
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
issue-2418.sh
issue-2424-sequential-values-paths.sh
issue-2431.sh
issue-2451-nested-helmfile-array-replace.sh
issue-2502-race-condition-local-chart.sh
issue-2503-kustomize-fetch.sh
issue-2515.sh
issue-2544.sh
issue-2596-local-deps-multiple-files.sh fix: normalize dependency chart path before DirectoryExistsAt check (#2598) 2026-05-20 08:44:14 +08:00
issue-2599-default-inherit.sh feat: add defaultInherit for automatic release template inheritance (#2600) 2026-05-20 18:21:03 +08:00
kubedog-tracking.sh
kustomized-fetch.sh
oci-parallel-pull.sh
postrender-defaults-args.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
v1-subhelmfile-multi-bases-with-array-values.sh
yaml-overwrite.sh