Yusuke Kuoka
8144638bab
feat: Helmfile V1 mode ( #594 )
...
* feat: Helmfile V1 mode
We add a new "V1 mode" to Helmfile so that you can seemlessly upgrade Helmfile from the current v0.x to the upcoming v1.0.
The idea is that we build both v0 and v1 binaries from the same tagged commit within the main branch, with different defaults for the "V1 mode"- the V1 mode is disabled by default for v0.x binaries, while it is enabled by default for v1.x binaries.
The V1 mode can be overrode at runtime via envvar. That is, even after upgrading the binary to v1, you will not see any backward-incompatible changes while you explicitly set an envvar, `HELMFILE_V1MODE=true`, at runtime.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-22 20:30:44 +09:00
yxxhero
eb810c6c0c
add goreportcard ( #595 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-21 23:46:31 +08:00
yxxhero
d8d0bf830a
Add helmfile state validate policy ( #592 )
2022-12-21 10:49:31 +08:00
Yusuke Kuoka
8ec51c2826
doc: Remove HELMFILE_SKIP_INSECURE_TEMPLATE_FUNCTIONS in Helmfile v1 ( #590 )
2022-12-19 07:38:43 +08:00
yxxhero
8ce539f4de
use yaml v3 UnmarshalYAML ( #587 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-19 06:40:07 +09:00
yxxhero
36c91c5427
optimize lint logic ( #586 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-18 08:39:45 +08:00
Felipe Santos
9cc0cff07f
Clarify postsync hooks docs ( #585 )
...
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
2022-12-16 19:03:08 +09:00
yxxhero
7410316cf9
update postrenderer docs ( #580 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-15 11:50:18 +08:00
yxxhero
17b03c22ec
bump helm to v3.10.3 ( #579 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-15 09:00:22 +08:00
dependabot[bot]
0a0640affd
build(deps): bump helm.sh/helm/v3 from 3.10.2 to 3.10.3 ( #578 )
2022-12-15 06:30:23 +08:00
yxxhero
ecc8988f10
clean: optimize post-render code ( #577 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-14 22:06:23 +08:00
yxxhero
5da1200a8b
add post render integration test ( #576 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-14 11:38:47 +08:00
dependabot[bot]
524003d80b
build(deps): bump go.uber.org/multierr from 1.6.0 to 1.9.0 ( #575 )
...
Bumps [go.uber.org/multierr](https://github.com/uber-go/multierr ) from 1.6.0 to 1.9.0.
- [Release notes](https://github.com/uber-go/multierr/releases )
- [Changelog](https://github.com/uber-go/multierr/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/multierr/compare/v1.6.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/multierr
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 07:43:21 +08:00
Quan TRAN
7860ac988a
Remove temporary dir as well ( #563 )
...
Fixes #540
Signed-off-by: Quan TRAN <account@itscaro.me>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: yxxhero <aiopsclub@163.com>
2022-12-14 08:33:07 +09:00
Yusuke Kuoka
a93035a3e5
Revert "Add e2e test for helmfile-diff with post-renderer"
...
This reverts commit a3e8c0426c .
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-12-13 07:12:48 +00:00
yxxhero
89d9a9b3a2
Merge branch 'main' into main
2022-12-13 13:18:13 +08:00
yxxhero
773b0d6fc4
fix e2e
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
yxxhero
04729b027a
fix e2etest
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Yusuke Kuoka
a3e8c0426c
Add e2e test for helmfile-diff with post-renderer
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Yusuke Kuoka
9f702280ae
Add e2e test for post-renderer
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
yxxhero
9b0eeaad94
Update output.yaml
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Yusuke Kuoka
d0915641ca
Fix TestGenerateID
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Yusuke Kuoka
c2e7804479
Add --post-render support also for diff
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Indrek Juhkam
608bb0b525
Avoid --skip-refresh on local charts ( #541 )
...
All the dependencies get correctly installed when dealing with remote
charts.
If there's a local chart that depends on remote dependencies then those
don't get automatically installed. See #526 . They end up with this
error:
```
Error: no cached repository for helm-manager-b6cf96b91af4f01317d185adfbe32610179e5246214be9646a52cb0b86032272 found. (try 'helm repo update'): open /root/.cache/helm/repository/helm-manager-b6cf96b91af4f01317d185adfbe32610179e5246214be9646a52cb0b86032272-index.yaml: no such file or directory
```
One workaround for that would be to add the repositories from the local
charts. Something like this:
```
cd local-chart/ && helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
```
This however is not trivial to parse and implement.
An easier fix which I did here is just to not allow doing
`--skip-refresh` for local repositories.
Fixes #526
Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
yxxhero
197fdcdabd
add xiaomudk as maintainer ( #504 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: Quan TRAN <itscaro@users.noreply.github.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Patrick Hobusch
c744046f88
Allow running images with users other than root ( #546 )
...
* Allow running images with users other than root
Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Quan TRAN
73134d8a70
Add documentation on go-getter cache
...
Signed-off-by: Quan TRAN <account@itscaro.me>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
guofutan
0a953731b0
fix( #507 ): support assign --post-renderer within helmfile flags and helmdefault or release config
...
1. only implement post-renderer flags this patch
2. As mumoshu advise, add helmfile flags `--post-render` and add the
postRenderer config in helmDefaults and release. the priority is
helmfile flags > release > helmDefaults.
3. fix the test case in state_test.go and some other tests.
Signed-off-by: guofutan <guofutan@tencent.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
guofutan
1f0f7ec8d6
fix( #510 ): fea add postRenderer and postRendererArgs config in helmDefault of helmfile.yaml
...
Signed-off-by: guofutan <guofutan@tencent.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
guofutan
4cc07daced
fix( #510 ): fix golangci-lint run error,add the unit test, add the compatibility when there is blank in the args values.
...
Signed-off-by: guofutan <guofutan@tencent.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
guofutan
7be64f29cf
fea( #507 ): support assign `--post-renderer` and `--post-renderer-args` within args in helmDefaults when use helm v3
...
Signed-off-by: guofutan <guofutan@tencent.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-13 13:12:07 +08:00
Indrek Juhkam
bdc6982172
Avoid --skip-refresh on local charts ( #541 )
...
All the dependencies get correctly installed when dealing with remote
charts.
If there's a local chart that depends on remote dependencies then those
don't get automatically installed. See #526 . They end up with this
error:
```
Error: no cached repository for helm-manager-b6cf96b91af4f01317d185adfbe32610179e5246214be9646a52cb0b86032272 found. (try 'helm repo update'): open /root/.cache/helm/repository/helm-manager-b6cf96b91af4f01317d185adfbe32610179e5246214be9646a52cb0b86032272-index.yaml: no such file or directory
```
One workaround for that would be to add the repositories from the local
charts. Something like this:
```
cd local-chart/ && helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
```
This however is not trivial to parse and implement.
An easier fix which I did here is just to not allow doing
`--skip-refresh` for local repositories.
Fixes #526
Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
2022-12-12 16:43:10 +09:00
yxxhero
2a18134986
add xiaomudk as maintainer ( #504 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-12-12 08:49:45 +09:00
Patrick Hobusch
2f2a74d28f
Allow running images with users other than root ( #546 )
...
* Allow running images with users other than root
Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
2022-12-11 09:01:41 +08:00
yxxhero
195cf774a3
Merge pull request #566 from helmfile/issue-544
...
Add documentation on go-getter cache
2022-12-10 21:18:48 +08:00
Quan TRAN
ad7fcbb0e9
Add documentation on go-getter cache
...
Signed-off-by: Quan TRAN <account@itscaro.me>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-10 19:36:56 +08:00
dependabot[bot]
a6df2f8148
build(deps): bump k8s.io/apimachinery from 0.25.4 to 0.26.0 ( #568 )
...
* build(deps): bump k8s.io/apimachinery from 0.25.4 to 0.26.0
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-10 13:26:40 +08:00
yxxhero
e173a7b64f
Merge pull request #569 from helmfile/dependabot/go_modules/github.com/go-test/deep-1.1.0
...
build(deps): bump github.com/go-test/deep from 1.0.8 to 1.1.0
2022-12-10 11:31:03 +08:00
dependabot[bot]
3f4673aa95
build(deps): bump github.com/variantdev/vals from 0.20.0 to 0.21.0 ( #570 )
...
Bumps [github.com/variantdev/vals](https://github.com/variantdev/vals ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/variantdev/vals/releases )
- [Changelog](https://github.com/variantdev/vals/blob/main/.goreleaser.yml )
- [Commits](https://github.com/variantdev/vals/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: github.com/variantdev/vals
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:30:36 +08:00
xiaomudk
94381c1e17
Fix preapply hooks are not called on no diff when run apply subcommand ( #522 )
...
* Fix presync hooks are not called on no diff when run apply subcommand
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
* Update docs/index.md
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-12-10 12:07:26 +09:00
dependabot[bot]
75aab769c8
build(deps): bump github.com/go-test/deep from 1.0.8 to 1.1.0
...
Bumps [github.com/go-test/deep](https://github.com/go-test/deep ) from 1.0.8 to 1.1.0.
- [Release notes](https://github.com/go-test/deep/releases )
- [Changelog](https://github.com/go-test/deep/blob/master/CHANGES.md )
- [Commits](https://github.com/go-test/deep/compare/v1.0.8...v1.1.0 )
---
updated-dependencies:
- dependency-name: github.com/go-test/deep
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-10 02:56:08 +00:00
yxxhero
70a1b3b513
Fix snapshot tests to pass regardless of helm version ( #572 )
...
* Fix snapshot tests to pass regardless of helm version
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-12-10 10:54:03 +08:00
Quan TRAN
398c812e49
Use go-getter with secrets as well ( #560 )
...
* Use go-getter with secrets as well
Signed-off-by: Quan TRAN <account@itscaro.me>
2022-12-09 07:46:28 +08:00
yxxhero
f7b3fb4432
Merge pull request #562 from helmfile/dependabot/go_modules/golang.org/x/term-0.3.0
...
build(deps): bump golang.org/x/term from 0.2.0 to 0.3.0
2022-12-07 08:12:27 +08:00
dependabot[bot]
28ba777d5f
build(deps): bump golang.org/x/term from 0.2.0 to 0.3.0
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 15:10:08 +00:00
yxxhero
b76f1d37d7
Merge pull request #557 from helmfile/dependabot/go_modules/go.uber.org/zap-1.24.0
2022-12-02 06:21:52 +08:00
dependabot[bot]
ba2b68fd18
build(deps): bump go.uber.org/zap from 1.23.0 to 1.24.0
...
Bumps [go.uber.org/zap](https://github.com/uber-go/zap ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/uber-go/zap/releases )
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/zap/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/zap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 15:09:33 +00:00
yxxhero
354f9097cf
Merge pull request #549 from helmfile/fix_typo_in_cmd
...
typo: fix typo in cmd/apply.go
2022-12-01 12:17:42 +08:00
yxxhero
1f6ef3edc1
Merge pull request #556 from helmfile/dependabot/go_modules/github.com/Masterminds/sprig/v3-3.2.3
2022-11-30 23:28:15 +08:00
dependabot[bot]
1c77bc5cfb
build(deps): bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3
...
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig ) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/Masterminds/sprig/releases )
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Masterminds/sprig/compare/v3.2.2...v3.2.3 )
---
updated-dependencies:
- dependency-name: github.com/Masterminds/sprig/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-30 15:11:33 +00:00