Simon Bouchard
32afe9de42
Merge branch 'main' into update-strategy-feature
2025-09-19 14:41:54 -04:00
Nick Neisen
f708d06200
Fix panic when helm isn't installed ( #2169 )
...
Return error instead of panic
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
2025-09-09 07:15:46 +08:00
Simon Bouchard
e3c0d3b770
Removed 'reinstall' update strategy option to only have reinstallIfForbidden, cleanup of pre-sync changes, adapted unit tests
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-08-02 16:21:27 -04:00
Simon Bouchard
512a0fc5af
Merge branch 'main' into update-strategy-feature
2025-08-01 13:19:12 -04:00
yxxhero
959aae5791
refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in ( #2114 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-08-01 11:28:39 +08:00
Simon Bouchard
c10bb1c4e0
Add validation of updateStrategy parameter and unit test
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-07-29 18:02:20 -04:00
Simon Bouchard
ae87c7a456
Merge branch 'main' into update-strategy-feature
2025-07-21 15:14:03 -04:00
yxxhero
b52ca9ae04
refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3 ( #2039 )
...
* refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(yaml): enhance yaml encoding with consistent formatting and quotes
Signed-off-by: yxxhero <aiopsclub@163.com>
* optimize code
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix more issues
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-05-15 10:21:37 -04:00
Simon Bouchard
0e23aefe10
Fix unit tests related to the new updateStrategy feature
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-24 19:22:36 -04:00
Simon Bouchard
ec70bc5b2d
feat: Add updateStrategy option in the state file with 'reinstall'/'reinstallIfForbidden' choices to uninstall and apply the specific release(s) (if forbidden to update)
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-24 18:10:36 -04:00
Adam Blasko
9bf51cb011
Feat: setting reuseValues flag in release ( #2004 )
...
* Feat: reuseValues in release
Adding properties to set reuseValues flag on release-level.
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
* feat: fixing tests
Most of the tests had issues with flag order, which changed due to moving the value control flags out of the "common flags" for diff
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
* fix: fixing lint issue
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
---------
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
2025-04-23 07:53:29 +08:00
André Arnqvist
c9a2e76200
fix: Check needs with context and namespace ( #1986 )
...
* fix: Check needs with context and namespace
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Ensure releases have overrides
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Run go fmt
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Add tests checking needs with same name in different namespaces
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Simplify setting overrides
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
---------
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
2025-04-07 21:57:02 +08:00
yxxhero
e4273d050e
feat: add labels for helm release ( #1046 )
...
feat: add labels for k8s resources
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-03-30 19:24:41 -04:00
yxxhero
5d29f03782
Remove all v0.x references ( #1919 )
...
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(two_pass_renderer): remove unused imports and functions
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-03-08 07:43:21 -06:00
Connor Hindley
2c38611acd
feat: Add support for --wait-retries flag. ( #1922 )
...
* feat: Add support for --wait-retries flag.
This change wires up waitRetries option to set the helm --wait-retries flag.
--wait-retries was added in helm 3.15.0 and makes waiting more robust to registry errors.
https://github.com/helm/helm/commit/fc74964
https://github.com/helm/helm/releases/tag/v3.15.0
Resolves #1522
Signed-off-by: Connor Hindley <connor.hindley@tanium.com>
2025-02-12 07:28:37 +08:00
yxxhero
63e2684ade
Revert "cleanup: remove all about v0.x" ( #1918 )
...
Revert "cleanup: remove all about v0.x (#1903 )"
This reverts commit d7bcd5e998 .
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-08 18:25:16 +08:00
yxxhero
d7bcd5e998
cleanup: remove all about v0.x ( #1903 )
...
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(two_pass_renderer): remove unused imports and functions
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-05 13:50:16 -05:00
Justin Lai
afe18e8031
feat: Add "--no-hooks" to helmfile template ( #1813 )
...
* Adding support for no-hooks in template cmd
Signed-off-by: Justin Lai <justin.lai@invitae.com>
2025-01-15 13:33:16 +08:00
yxxhero
22ad21c1ae
feat: add --take-ownership flag to apply and sync commands ( #1863 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-01-11 08:41:10 -06:00
yxxhero
bd12fa1cc3
feat(state): add support for setString in ReleaseSpec and HelmState ( #1821 )
...
* feat(state): add support for setString in ReleaseSpec and HelmState
Signed-off-by: yxxhero <aiopsclub@163.com>
* docs: add setString section to index.md for helm configuration
Signed-off-by: yxxhero <aiopsclub@163.com>
* tests: fix more tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2024-12-09 10:37:56 -05:00
Zubair Haque
d1416ec7b4
feat: add skip json schema validation during the install /upgrade of a Chart ( #1737 )
...
* open PR for --skip-schema-validation flag
Signed-off-by: zhaque44 <haque.zubair@gmail.com>
2024-10-24 20:53:18 +08:00
Shane Starcher
b6ab825d3c
[feature] add --skip-refresh to globals ( #1736 )
2024-10-12 19:56:55 +08:00
yxxhero
5c6572b492
Add hide notes support ( #1710 )
...
* add --hide-notes support
Signed-off-by: yxxhero <aiopsclub@163.com>
2024-09-17 20:24:19 +08:00
yxxhero
75ad24e6dc
feat: use helm status to find helm release ( #1640 )
...
* feat: use helm status to find helm release
Signed-off-by: yxxhero <aiopsclub@163.com>
2024-07-30 13:40:44 +08:00
yxxhero
56dad58180
feat: add namespace info in syncRelease and diffRelease ( #1609 )
2024-07-16 09:47:00 +08:00
jim-barber-he
f73da1e2a1
Add helmfile template --show-only ( #1494 )
...
Add a `--show-only` parameter to the `helmfile template` command to pass
on to the `helm template` command.
Signed-off-by: Jim Barber <jim.barber@healthengine.com.au>
2024-05-12 07:02:02 +08:00
yxxhero
590486446f
fix needs issue when release installed is false ( #997 )
...
* fix needs issue when release installed is false
Signed-off-by: yxxhero <aiopsclub@163.com>
2024-03-04 10:30:03 +08:00
Tim Ramlot
5910ce0b99
Add `--kubeconfig` flag ( #1381 )
...
add kubeconfig flag
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-03-01 20:26:54 +08:00
Tim Ramlot
7ccacb7ee5
Add the SyncArgs option and --sync-args flag ( #1375 )
...
* add the SyncArgs option
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
* add syncArgs to helmDefaults and update index.md
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
* add --sync-args flags to helmfile sync
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
* add tests for appendExtraDiffFlags and appendExtraSyncFlags
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
---------
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-02-29 20:49:48 +08:00
yxxhero
9203641f03
feat: add suppress output line regex support ( #1329 )
...
* feat: add suppress output line regex support
Signed-off-by: yxxhero <aiopsclub@163.com>
2024-02-18 12:10:14 +08:00
Cyril Jouve
eb21377f39
replace custom diff in tests using testify ( #1215 )
2023-12-13 06:32:38 +08:00
Maarten Boekhold
d0b8d7ee5e
Add "PostRendererArgs" option to be passed to helm ( #1133 )
...
* Add "PostRendererArgs" option to be passed to helm
This allows using PowerShell scripts on Windows as Post Renderer.
Signed-off-by: Maarten Boekhold <maarten.boekhold@finastra.com>
2023-11-21 21:32:14 +08:00
yxxhero
0c3951097e
fix #1095 ( #1100 )
...
* fix #1095
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-11-01 11:55:55 +08:00
Jan-Otto Kröpke
9bc7bfc500
Implement --diff-args ( #959 )
...
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2023-08-09 19:47:15 +08:00
WrenIX
ab50997798
chore: join with space ( #963 )
...
Signed-off-by: WrenIX <dev.github@wrenix.eu>
2023-08-08 13:25:54 +08:00
yxxhero
cfa89d4040
feat: add insecure support for oci repo ( #921 )
...
* feat: add insecure support for oci repo
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-07-24 09:09:10 +08:00
yxxhero
c55fa0f765
Replace interface{} by any ( #901 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-16 10:49:05 +09:00
yxxhero
df01973824
cleanup: remove panic in testutil ( #890 )
...
* cleanup: remove panic in testutil
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-13 13:44:32 +08:00
yxxhero
12a984d70f
feat: set RepositorySpec.PassCredentials var type to bool ( #878 )
...
* feat: set RepositorySpec.PassCredentials var type to bool
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-01 13:41:45 +08:00
yxxhero
e8f9bbbf9d
feat: update repo Spec var type skipTLSVerify to bool ( #877 )
...
* feat: update repo Spec var type skipTLSVerify to bool
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-06-01 12:05:53 +08:00
SeWieland
8b3ad5b793
feat: make environment context available ( #832 )
...
* feat: make environment context available
This feature adds the "{{.Environment.KubeContext}}" variable.
Discussion #829
Signed-off-by: sewieland <sebastian.wieland@iav.de>
* chore: fix tests which compare logging outputs
This commit adds an addtional space wherever needed to the expected log outputs due to the added "KubeContext" in the environment struct.
Discussion #829
Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>
* docs: added documentation for `Environment.KubeContext`
Discussion #829
Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>
* test: make sure the `Environment.KubeContext` is mapped out correctly
Discussion #829
Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>
---------
Signed-off-by: sewieland <sebastian.wieland@iav.de>
Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>
Co-authored-by: sewieland <sebastian.wieland@iav.de>
2023-05-22 13:43:46 +09:00
yxxhero
00dace9b63
Feat add cascade support ( #860 )
...
* feat: add cascade support for helm v3.12.0
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-05-15 13:49:33 +08:00
William Lahti
b6dd7122f9
feat: add --skip-trailing-cr to helmfile diff ( #625 )
2023-05-08 05:23:59 +08:00
Soh Takada
a8a0a33c33
Add kube version flag ( #804 )
...
* add --kube-version flag into template cmd
Signed-off-by: FeLvi-zzz <34182539+FeLvi-zzz@users.noreply.github.com>
* add test
Signed-off-by: FeLvi-zzz <34182539+FeLvi-zzz@users.noreply.github.com>
* modify flag description
Signed-off-by: FeLvi-zzz <34182539+FeLvi-zzz@users.noreply.github.com>
* use switch
Signed-off-by: FeLvi-zzz <34182539+FeLvi-zzz@users.noreply.github.com>
* add comment
Signed-off-by: FeLvi-zzz <34182539+FeLvi-zzz@users.noreply.github.com>
---------
Signed-off-by: FeLvi-zzz <34182539+FeLvi-zzz@users.noreply.github.com>
2023-04-16 07:05:23 +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
yxxhero
2d9f83c1de
clean: optimize postrenderer code ( #738 )
2023-03-14 06:18:20 +08:00
yxxhero
f629ee1ae6
bump vals to v0.22.0 ( #703 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-02-17 14:09:49 +08:00
koralsky
fc634c9ee3
feat: Reset values flag ( #602 )
...
Ref https://github.com/helmfile/helmfile/discussions/593
* implemented --reset-values flag overriding .helmDefaults.reuseValues=true
* tests for --reset-values flag
* fixed pkg/app tests
* added tests for both reset & reuse flags given
* added appendValuesControlMode method for --reuse/reset-values flag processing
* updated code comments & docs
Signed-off-by: Karol Ossowski <k@koralsky.pl>
2023-01-17 09:34:37 +09:00
xiaomudk
c4eb62388b
Drop Helm v2 support ( #613 )
...
Resolves #589
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2023-01-17 09:24:47 +09:00
yxxhero
8d96bbb0e4
feat: mark deprecated args and cmd for v1 ( #628 )
...
* feat: mark deprecated args and cmd for v1
Signed-off-by: yxxhero <aiopsclub@163.com>
2023-01-14 23:43:05 +08:00