Repository navigation
fix: skip build chartification for dependencies and namespace overrides - #2888
Merged
yxxhero merged 1 commit intoNov 13, 2026
Merged
Conversation
ViktorBystrov72
requested review from
aditmeno,
itscaro,
mumoshu,
xiaomudk,
yxxhero and
zhaque44
as code owners
November 10, 2026 11:43
ViktorBystrov72
force-pushed
the
fix/build-chartify-dependencies
branch
from
November 11, 2026 13:44
a3f7cfc to
e3a775e
Compare
Signed-off-by: Виктор Быстров <[email protected]>
ViktorBystrov72
force-pushed
the
fix/build-chartify-dependencies
branch
from
November 12, 2026 04:53
e3a775e to
a98211d
Compare
Contributor
There was a problem hiding this comment.
🟢 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 templatefor 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
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
helmfile buildstill invokes chartify for releases with ad-hocdependenciesorforceNamespace. Since build skips repository synchronization, a clean Helm configuration fails withrepo ... not foundinstead 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:
make testpasses, including the full race/coverage suite and template E2E tests.make fmt,make check,make check-modernize, and repository-configuredgolangci-lint run(2.14.0) pass.git diff --checkpasses.The other Helm versions in the CI matrix and integration tests against a live Kubernetes cluster were not run locally.