yxxhero
08a22772f7
feat: add --write-output flag to helmfile fetch for air-gapped environments ( #2572 )
...
* feat: add --write-output flag to helmfile fetch for air-gapped environments
Add --write-output flag to helmfile fetch that outputs a modified
helmfile.yaml with chart references updated to point to downloaded
local chart paths. Combined with --output-dir, this enables preparing
all charts for deployment in air-gapped environments.
Usage:
helmfile fetch --output-dir ./charts --write-output > helmfile-airgapped.yaml
Fixes #2571
Signed-off-by: yxxhero <yxxhero@users.noreply.github.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix: update fetch-write-output integration test grep to match YAML list item chart field
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d00f71ab-d40d-4220-9b11-97674597685f
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: send status messages to stderr and enforce sequential processing in --write-output mode
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d338e24c-4f6f-4a59-a319-4b975e0efdcb
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: restore SequentialHelmfiles after Fetch and use %s for YAML string formatting
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/cfa9f3f4-c72f-4760-9c51-88bc6f30add2
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* test: add test for SequentialHelmfiles restore after Fetch with --write-output
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/cfa9f3f4-c72f-4760-9c51-88bc6f30add2
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: disable live output on --write-output and fix shell quoting/portability in integration test
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/b0eb0d3d-493b-4d77-b8eb-2a5c0ce70d86
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: use unquoted ${helmfile} variable to allow word splitting for EXTRA_HELMFILE_FLAGS
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d025a111-f7d0-439e-bf14-5508c40d0b51
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: restore helm.EnableLiveOutput after Fetch --write-output via defer
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/ddb8c5fc-ebd1-4f09-9474-5da58938a219
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* test: strengthen enableLiveOutput restore assertion with non-trivial initial value
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/d1d0ba9e-5c97-48e1-b761-8bdee391efb2
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* feat: restrict --write-output to a single helmfile state file with clear error
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/f608a0d0-7f52-4e3f-9fac-ab966bd01efb
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* refactor: apply code review suggestions for variable and test naming
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/f608a0d0-7f52-4e3f-9fac-ab966bd01efb
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: replace naked return with explicit return ok, errs to fix nakedret lint error
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/4b060131-a977-44b0-98f7-42bc108ae8e8
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: buffer YAML output and update --write-output flag description
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/50c6ad2e-125c-43c1-b9c3-37fe1686a8eb
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* fix: shorten --write-output flag description, move detail to Long help
Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/50c6ad2e-125c-43c1-b9c3-37fe1686a8eb
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
---------
Signed-off-by: yxxhero <yxxhero@users.noreply.github.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-03 18:32:30 +08:00
Hans Song
1d0ba72b47
feat: add/expose cli flags ( #771 )
...
* feat: add/expose cli flags
Signed-off-by: Hans Song <hans.m.song@gmail.com>
* fix tests
Signed-off-by: Hans Song <hans.m.song@gmail.com>
* remove skipdeps from subcommand options
Signed-off-by: Hans Song <hans.m.song@gmail.com>
* remove skip-deps from subcommand flags
Signed-off-by: Hans Song <hans.m.song@gmail.com>
* remove SkipDeps from subcommand implementations
Signed-off-by: Hans Song <hans.m.song@gmail.com>
* update doco with new flags
Signed-off-by: Hans Song <hans.m.song@gmail.com>
---------
Signed-off-by: Hans Song <hans.m.song@gmail.com>
2023-04-02 14:53:52 +08:00
Helge Eichelberg
8f59a1c18a
Add --output-dir-template flag to the fetch command ( #456 )
...
* Add --output-dir-template flag to the fetch command
Signed-off-by: elchenberg <elchenberg@users.noreply.github.com>
2022-11-05 18:55:02 +08:00
yxxhero
f8a297bbac
fix --debug flag
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-25 08:24:23 +08:00
yxxhero
85ade797ab
Use cobra ( #234 )
...
switch to cobra
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-19 21:06:18 +09:00