yxxhero
3bbd816247
fix extra args missing in helmfile apply subcommand ( #858 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-05-18 12:34:18 +08: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
yxxhero
54ed6bf0d5
bump helm to v3.12.0 ( #855 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-05-11 10:35:17 +08:00
yxxhero
643f888703
fix: loadBases overrodeEnv issue ( #838 )
2023-05-08 05:24:32 +08:00
William Lahti
b6dd7122f9
feat: add --skip-trailing-cr to helmfile diff ( #625 )
2023-05-08 05:23:59 +08:00
Dmitry Chepurovskiy and yxxhero
aa5be82834
Make helmfile respect signals send by kill command (not only Ctrl+C in terminal) ( #750 )
...
Fixes #746
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net >
Signed-off-by: yxxhero <aiopsclub@163.com >
Co-authored-by: yxxhero <aiopsclub@163.com >
2023-04-29 15:25:29 +09:00
Vincent Stchu
3d0f0afe3a
Feat: support helm flag --enable-dns ( #830 )
...
* Support helm flag --enable-dns
Signed-off-by: vincent_stchu <24803055+vincentstchu@users.noreply.github.com >
2023-04-27 16:27:09 +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
AlexAxenti
0012e7e5a1
feat: add duration to affected releases on sync ( #773 )
...
* feat: add duration to affected releases on sync
Signed-off-by: Alexandru Axenti <alex.axenti@gmail.com >
2023-04-15 08:09:47 +08:00
yxxhero
7c72e2ba3e
fix: ValuesTemplate quote issue ( #787 )
...
* fix: ValuesTemplate quote issue
Signed-off-by: yxxhero <aiopsclub@163.com >
* optimize goccy yaml options
Signed-off-by: yxxhero <aiopsclub@163.com >
* add more options
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 >
2023-04-14 13:03:26 +09:00
yxxhero
219602ebc7
bump helm to v3.11.3 ( #802 )
...
* bump helm to v3.11.3
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-04-13 10:34:58 +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
Quan TRAN and yxxhero
5650661a88
remove unnecessary remote.Locate() ( #565 )
...
* remove unnecessary Locate
Signed-off-by: Quan TRAN <account@itscaro.me >
* add remote test
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com >
---------
Signed-off-by: Quan TRAN <account@itscaro.me >
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com >
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com >
2023-03-29 21:27:12 +08:00
yxxhero
5e8a502b41
feat: use new helm version parse function ( #760 )
...
* feat: use new helm version parse function
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-23 08:46:11 +08:00
yxxhero
bfb94314be
bump chartify to v0.14.0 ( #759 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-21 18:52:42 +08:00
yxxhero
a817997ed8
bump mergo to 0.3.14 ( #751 )
...
bump merge to 0.3.14
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-17 18:37:15 +08:00
yxxhero
063ba86447
fix concurrency issue ( #742 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-15 15:42:16 +08:00
yxxhero
2d9f83c1de
clean: optimize postrenderer code ( #738 )
2023-03-14 06:18:20 +08:00
yxxhero
5cdec2dd51
clean: helm v2 logic code ( #736 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-12 00:28:39 +08:00
yxxhero
400488d3ae
bump helm to 3.11.2 ( #733 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-09 09:00:48 +08:00
yxxhero
c21958557c
fix: improve set and values flags help message ( #724 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-03-07 09:21:13 +09:00
yxxhero
95c56d87fc
v1: Fix --state-values-set to override values of environments colocated with releases ( #705 )
2023-03-05 16:03:00 +08:00
yxxhero
522392c08c
fix get template func ( #721 )
2023-03-03 06:37:22 +08:00
Mitsuo Heijo
dfe835a9c4
Use Masterminds/semver/v3 instead of hashicorp/go-version ( #712 )
...
Signed-off-by: Mitsuo Heijo <mitsuo.heijo@gmail.com >
2023-02-22 09:43:13 +08:00
yxxhero
d0ef31e10b
optimize logger code ( #706 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-02-19 23:20:47 +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
xiaomudk
a8574ba0cf
Fix post-renderer flag not working in diff and template subcommand ( #691 )
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com >
2023-02-14 10:47:24 +08:00
yxxhero
37c213210e
bump helm to 3.11.1 ( #695 )
2023-02-12 20:15:57 +08:00
yxxhero
65eca3337e
fix panic issue ( #690 )
2023-02-10 07:32:08 +08:00
Yusuke Kuoka
8f2d97a1b3
Relax the forbid-env-with-releases policy for plain helmfile.yaml on v1 ( #684 )
2023-02-09 07:02:50 +08:00
Yusuke Kuoka
8c130a4fa7
fix: Make the forbid-env-with-releases policy strict on v1 ( #683 )
...
Currently, both v0 and v1 warns any usage of environments with releases within the same helmfile part.
It should rather be an error for v1, as proposed in https://github.com/helmfile/helmfile/blob/main/docs/proposals/towards-1.0.md#forbid-the-use-of-environments-and-releases-within-a-single-helmfileyaml-part .
Follow-up for #592
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-02-08 09:09:12 +08:00
Yusuke Kuoka
fc027d1538
breaking: Fix the inherit feature to support multi-inheritance ( #674 )
...
* breaking: Fix the inherit feature introduced in Helmfile v0.150.0 for multi-inheritance
Follow-up for #435
Addresses https://github.com/helmfile/helmfile/discussions/656#discussioncomment-4877360 towards Helmfile v1
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Print a deprecation warning on releases[].inherit of map
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
---------
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-02-07 08:18:19 +08:00
Yusuke Kuoka
59f32512fd
Use goccy/go-yaml fork to not break dynamic values on helmfile v1 ( #675 )
...
* Use goccy/go-yaml fork to not break dynamic values on helmfile v1
I forked goccy/go-yaml to https://github.com/helmfile/go-yaml and added a commit https://github.com/helmfile/go-yaml/commit/259d2ed450aed2aa1d6f05139f99a8b01f87633a to let it produce YAML data compatible with other legacy YAML parsers that do not support YAML 1.2.
Ref https://github.com/helmfile/helmfile/discussions/656
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Add test for goccy/go-yaml fork behavior
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
---------
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-02-06 11:39:27 +08:00
yxxhero and Yusuke Kuoka
abbdb6950b
feat: add gotmpl file ext when using helmfile.d feature ( #649 )
...
Closes #654
Signed-off-by: yxxhero <aiopsclub@163.com >
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-01-25 08:34:39 +09:00
yxxhero
8bea5aee3e
use latest helm previous minor version for helmfile init ( #652 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-01-24 13:44:52 +08:00
Yusuke Kuoka
bc6317122b
Disable double-rendering in V1 ( #647 )
...
* Disable double-rendering in V1
We are going to force users to separate environments and releases sections in every helmfile.yaml in the [Helmfile V1](https://github.com/helmfile/helmfile/blob/main/docs/proposals/towards-1.0.md ). The goal of separation was to make the helmfile.yaml rendering result not dependent on the double-rendering and therefore the feature should be safe to be turned off in V1.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Fix helmfile template rendering error log for v1
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Add test for helmfile template debug log differences between v0 and v1 modes
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Fix helmfile template render debug log to not mention "first-pass" in v1 mode
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-01-24 12:38:11 +08:00
Yusuke Kuoka
652b609b35
Do not load the legacy default charts.yaml in v1 ( #651 )
2023-01-24 07:01:31 +08:00
Yusuke Kuoka
ec60ac815b
feat: Add missingFileHandlerConfig.ignoreMissingGitBranch ( #645 )
2023-01-23 17:27:00 +08:00
Yusuke Kuoka
543629f335
Remove unused go-getter driver funcs ( #643 )
...
The go-getter driver (named `Remote`) is used to implement remote values. I found some unused functions in its implementation. This commit removes those unused functions so that it becomes more maintainable.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-01-22 16:06:43 +08:00
yxxhero
cff674b7e9
bump helm to v3.11.0 ( #639 )
...
* fix conflicts
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix checksum
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-01-21 11:56:03 +09:00
yxxhero
1664edd0b9
add --skip-charts for destroy for disable prepare charts ( #637 )
...
* add --skip-charts for destroy for disable prepare charts
Signed-off-by: yxxhero <aiopsclub@163.com >
* add --skip-charts for delete subcmd
Signed-off-by: yxxhero <aiopsclub@163.com >
* add docs and e2e test
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-01-21 11:54:59 +09:00
yxxhero
a724ab73f6
fix inherit chart empty check issue ( #635 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-01-19 09:37:22 +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
xiaomudk and yxxhero
1f134d931f
fix fetch does not work with kustomized releases ( #624 )
...
* fix fetch does not work with kustomized releases
Signed-off-by: xiaomudk <xiaomudk@gmail.com >
* add tests
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: xiaomudk <xiaomudk@gmail.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
Co-authored-by: yxxhero <aiopsclub@163.com >
2023-01-15 09:19:01 +08: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
yxxhero
db5c2a52d6
Enhance tpl func test ( #619 )
...
enfore tpl func test
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-01-07 11:04:52 +08:00
Yusuke Kuoka
4688cf0132
Use gopkg.in/yaml.v2 for Helmfile v0.x ( #609 )
...
This should fix #435 for Helmfile v0.x releases since the next v0.150.0.
We introduce a new envvar to opt-in to the new YAML library, so that you can give it a shot before upgrading your Helmfile to v1. The same envvar can be used to opt-out of the new YAML library after you upgrade to Helmfile v1, giving you a more flexible migration story.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-01-04 18:17:24 +09:00
Yusuke Kuoka
490bb5d147
feat: inherit field for release template inheritance ( #606 )
...
* feat: `inherit` field for release template inheritance
Ref https://github.com/helmfile/helmfile/issues/435#issuecomment-1364749414
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Fix wording
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Comment on releaseWithInheritedTemplate
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Update Release Template doc with the new `inherit` feature
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Fix a typo in code comment
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2022-12-28 10:01:04 +09:00
Yusuke Kuoka
6b19577987
Fix cryptic message on values template render error ( #607 )
...
Previously a values template rendering failure resulted in a cryptic error message like:
```
g release templates in "input.yaml": failed executing templates in release "input.yaml"."foo1": failed executing template expressions in release "foo1".values[0] = "[98 97 115 101 76 97 98 101 108 58 32 34 123 123 32 103 101 116 32 46 82 101 108 101 97 115 101 46 76 97 98 101 108 115 32 92 34 98 97 115 101 92 34 32 92 34 78 79 84 95 73 78 72 69 82 73 84 69 68 92 34 32 125 125 34 10]": template: stringTemplate:1: unexpected "\\" in operand
```
The issue was that the values template at the value position of the YAML dict was printed as a formatted byte array. We now print it as a standard string so that it is easily readable.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2022-12-27 12:54:18 +08:00