helmfile/cmd
Shane Starcher 5b6223264e 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-11-28 09:10:40 +08:00
..
apply.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
build.go feat: add --skip-charts flag to build command 2025-11-28 09:10:40 +08:00
cache.go
deps.go fix --debug flag 2022-10-25 08:24:23 +08:00
destroy.go Create DeleteWait and DeleteTimeout parameters for Destroy (#1177) 2023-12-05 08:38:37 +08:00
diff.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
fetch.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00
init.go Add subcommand init for checks and installs helmfile deps (#389) 2022-11-03 14:51:30 +08:00
lint.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00
list.go
print_env.go feat: add print-env command (#2279) 2025-11-28 08:46:37 +08:00
repos.go fix: repos command help message (#698) 2023-02-15 07:23:50 +08:00
root.go feat: add print-env command (#2279) 2025-11-28 08:46:37 +08:00
show-dag.go Update DAG with dependencies (#1477) 2024-04-27 07:37:28 +08:00
status.go fix --debug flag 2022-10-25 08:24:23 +08:00
sync.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
template.go Issue-1883 fix (#2058) 2025-11-19 07:45:56 +08:00
test.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00
write-values.go feat: add/expose cli flags (#771) 2023-04-02 14:53:52 +08:00