helmfile/test/integration
yxxhero 732e4ad913
fix: helmfile fetch fails for kustomization directories (#2504)
* fix: helmfile fetch fails for kustomization directories

Fixes #2503

When running `helmfile fetch` on a release that points to a local
kustomization directory (without Chart.yaml), the command failed with
"Chart.yaml is missing".

The issue was that the condition `helmfileCommand != "pull"` in
prepareChartForRelease skipped chartification for ALL cases during
fetch, including local kustomization directories that NEED chartify
to convert them to Helm charts.

Solution:
- Added `NeedsChartifyForLocalDir` field to the Chartify struct to
  track when chartification is needed because the local directory
  is not a Helm chart (no Chart.yaml)
- Modified the condition to skip chartification for "pull" ONLY when
  it's not a local directory without Chart.yaml

This preserves the original fix (commit 1f134d93) for remote charts
with transformers while fixing local kustomization directories.

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

* test: add integration test for helmfile fetch with kustomization

Add test case for issue #2503 to verify helmfile fetch works correctly
with local kustomization directories (without Chart.yaml).

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

---------

Signed-off-by: yxxhero <aiopsclub@163.com>
2026-03-26 09:44:28 +08:00
..
.gnupg Add helm-secrets-encrypted values template file (#1701) 2021-04-06 14:20:42 +09:00
charts add post render integration test (#576) 2022-12-14 11:38:47 +08:00
lib fix(integration-tests): read correct minikube status (#1768) (#1769) 2024-11-05 22:24:36 +08:00
test-cases fix: helmfile fetch fails for kustomization directories (#2504) 2026-03-26 09:44:28 +08:00
run.sh fix: helmfile fetch fails for kustomization directories (#2504) 2026-03-26 09:44:28 +08:00