helmfile/pkg/app
Shane Starcher ecf76e0268 feat: add --skip-charts flag to build command
Add a --skip-charts flag to the `helmfile build` command to allow users
to skip chart preparation, following the same pattern as the list and
destroy commands.

This addresses an issue where `helmfile build` would run `helm template`
on kustomize resources during chart preparation, even though build is
meant to be a read-only inspection command.

Changes:
- Add SkipCharts field to BuildOptions
- Add --skip-charts flag to build command CLI
- Update StateConfigProvider interface to include SkipCharts()
- Update PrintState() to conditionally skip withPreparedCharts when flag is set

By default, the flag is false (charts are prepared) to maintain backward
compatibility. Users can now run `helmfile build --skip-charts` to get
fast output without chart preparation.

Signed-off-by: Shane Starcher <shanestarcher@gmail.com>
2025-10-05 07:42:46 +08:00
..
testdata chore: remove test data files (#2026) 2025-05-06 20:31:12 +08:00
version
app.go feat: add --skip-charts flag to build command 2025-10-05 07:42:46 +08:00
app_apply_hooks_test.go Feat: setting reuseValues flag in release (#2004) 2025-04-23 07:53:29 +08:00
app_apply_nokubectx_test.go Feat: setting reuseValues flag in release (#2004) 2025-04-23 07:53:29 +08:00
app_apply_test.go Feat: setting reuseValues flag in release (#2004) 2025-04-23 07:53:29 +08:00
app_diff_test.go Feat: setting reuseValues flag in release (#2004) 2025-04-23 07:53:29 +08:00
app_lint_test.go
app_list_test.go
app_sync_test.go
app_template_test.go refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
app_test.go Fix panic when helm isn't installed (#2169) 2025-09-09 07:15:46 +08:00
ask.go
config.go feat: add --skip-charts flag to build command 2025-10-05 07:42:46 +08:00
constants.go
constants_test.go
context.go
dag_test.go
desired_state_file_loader.go Fix panic when helm isn't installed (#2169) 2025-09-09 07:15:46 +08:00
destroy_nokubectx_test.go
destroy_test.go
diff_nokubectx_test.go Feat: setting reuseValues flag in release (#2004) 2025-04-23 07:53:29 +08:00
diff_test.go feat: add --take-ownership flag to helm diff and related config (#1992) 2025-04-27 12:57:41 -04:00
errors.go
errors_test.go
formatters.go
formatters_test.go
init.go build: update helm-diff plugin to v3.13.0 (#2189) 2025-09-13 10:08:15 +08:00
init_test.go
load_opts.go
load_opts_test.go
run.go
snapshot_test.go
two_pass_renderer.go
two_pass_renderer_test.go
validate_config.go
validate_config_test.go