Skip to content

fix: skip build chartification for dependencies and namespace overrides - #2888

Merged
yxxhero merged 1 commit into
helmfile:mainfrom
ViktorBystrov72:fix/build-chartify-dependencies
Nov 13, 2026
Merged

yxxhero merged 1 commit into
helmfile:mainfrom
ViktorBystrov72:fix/build-chartify-dependencies

Conversation

@ViktorBystrov72

Copy link
Copy Markdown
Contributor

helmfile build still invokes chartify for releases with ad-hoc dependencies or forceNamespace. Since build skips repository synchronization, a clean Helm configuration fails with repo ... not found instead of printing the state.

Include these two options in the existing build-only chartify filter introduced by #2212. The releases and their configuration remain in the rendered state. Regression tests exercise PrintState, prohibit Helm/chartify subprocess calls, and verify both affected releases and an ordinary release remain in the output. A transformer case covers the existing behavior.

Fixes #1859. Related prior work: #2676, which was closed by the stale bot; this change is limited to the existing build guard.

Validation on macOS arm64 with Go 1.27.3, Helm 3.22.1 and Kustomize 5.8.0:

  • The dependencies and forceNamespace regressions fail before the production change, while the transformer control passes.
  • make test passes, including the full race/coverage suite and template E2E tests.
  • make fmt, make check, make check-modernize, and repository-configured golangci-lint run (2.14.0) pass.
  • A built CLI successfully prints both configurations with an empty Helm repository configuration.
  • git diff --check passes.

The other Helm versions in the CI matrix and integration tests against a live Kubernetes cluster were not run locally.

@ViktorBystrov72
ViktorBystrov72 force-pushed the fix/build-chartify-dependencies branch from e3a775e to a98211d Compare November 12, 2026 04:53
@yxxhero
yxxhero requested a balanced review from Copilot November 12, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the change extending build-only chartify skipping to dependencies and namespace overrides.

No open issues 🎉

What changed in this PR

Extends Helmfile’s existing build-only chartify guard to cover dependencies and forceNamespace. This allows helmfile build to print release configuration without attempting chart rendering that can fail when Helm repositories have not been initialized.

Changes:

  • Skips chart preparation for the two additional release options during build.
  • Adds regression tests checking that affected and ordinary releases remain in output without Helm/chartify execution.
  • Documents build behavior and directs users to helmfile template for manifest rendering.
File Description
pkg/​state/​state.go Adds dependencies and namespace overrides to the build filter.
pkg/​app/​app_test.go Tests state output for dependencies, namespace overrides, and transformers.
docs/​cli.md Explains how build preserves chartify-related configuration.

Review effort: Balanced

@yxxhero
yxxhero merged commit 119a9ef into helmfile:main Nov 13, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

helmfile build fail with repo not found when using dependencies

3 participants