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
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
xiaomudk
7844145ee3
Allow helmfile statefile to passed by stdin ( #520 )
...
* Allow helmfile statefile to passed by stdin
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-22 11:34:05 +08:00
yxxhero
85f577e551
Merge pull request #533 from xiaomudk/patch-9
...
Fix getArray function copy error
2022-11-22 07:15:48 +08:00
xiaomudk
a05ccab6c3
Fix getArray function copy error
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-21 23:30:13 +08:00
koralsky
1ba83ae722
declare "reuse values" control mode in helmDefaults ( #527 )
...
* support for helmDefaults.reuseValues
Signed-off-by: Karol Ossowski <k@koralsky.pl>
2022-11-20 08:47:48 +08:00
Yusuke Kuoka
8d2aec249d
Use the new log capturing helper in all tests
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 08:53:53 +00:00
Yusuke Kuoka
6b69b31754
Use log capturing helper in TestApply_hooks
...
Along with the addition of the new arg to the helper for log level customization.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 08:20:13 +00:00
yxxhero
143f85b4f1
fix: helmfile template fails when selector matches a chart fetched with go-getter
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-13 15:10:57 +08:00
Yusuke Kuoka
844f6e9583
Introduce a new test helper for easier log snapshot testing
...
Use the new runWithLogCapture helper instead of the long boilerplate to capture the log for snapshot testing.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 03:24:24 +00:00
Lassi Pölönen
0f44cfacc4
Add the ability to specify a lock file ( #432 )
...
Allow configuring the lockfile in the state. This makes it possible for
example maintain a lock per environment.
Signed-off-by: Lassi Pölönen <lassi.polonen@iki.fi>
Signed-off-by: Lassi Pölönen <lassi.polonen@iki.fi>
2022-11-12 08:59:56 +09:00
yxxhero
2324188695
bump: helm to 3.10.2
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-11 13:54:35 +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
bc3528ae09
fix: args parse issue
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 10:53:00 +09:00
xiaomudk
6dcde20d7a
Add subcommand init for checks and installs helmfile deps ( #389 )
...
* Add subcommand init for checks and installs helmfile deps
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-03 14:51:30 +08:00
Quan TRAN
e919b4b1d2
fix oci:// chart ( #477 )
...
* fix oci:// chart
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-11-01 13:50:05 +08:00
Quan TRAN
414f899c28
use fs.Getwd() to get working dir for sub helmfile ( #471 )
...
* use fs.Getwd() to get working dir for sub helmfile
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-10-29 07:40:40 +08:00
Quan TRAN
2702161e74
add basepath along with filepath into yaml comment ( #460 )
...
* add basepath along with filepath into yaml comment
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-10-25 17:44:28 +08:00
yxxhero
f8a297bbac
fix --debug flag
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-25 08:24:23 +08:00
yxxhero
bc255f3e51
fix: fix need logic in chart stage
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-24 09:51:04 +08:00
Indrek Juhkam
a409b450cd
Add `--skip-refresh` flag to the build command ( #444 )
...
This improves the `helmfile sync` performance.
From the code: `BuildDeps` is used only by `runHelmDepBuilds`, which
only is used by `PrepareCharts` which is finally only used by
`withPreparedCharts`.
`withPreparedCharts` already does `SyncReposOnce` which means we do not
have to refresh the local repository cache on each chart build.
This is only supported in Helm v3.
This seems to be mostly affecting helmfiles which have a lot of releases
and those release charts use sub dependencies.
I saw significant performance improvements for a helmfile with 45
releases, 2 repositories, and most of the charts also had their own
dependencies. Results:
Before the patch:
* real 9m10.565s
* real 9m38.335s
* real 9m14.941s
* real 5m13.106s (with cache)
After the patch:
* real 6m51.965s
* real 6m36.605s
* real 6m31.685s
* real 3m0.271s (with cache)
These were tested with:
```
rm -rf ~/.cache/helmfile ~/.cache/helm ~/.config/helm/repositories.* && helmfile sync ...
```
The result with `(with cache)` was without deleting the caches first.
From these metrics it seems that the sync duration decreased 20-45%
depending on the run, release count, dependencies and if the cache was
used or not.
As far as I understand, this should be backward-compatible change.
Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
2022-10-20 09:03:08 +09:00
yxxhero
f2be4861d5
Merge pull request #441 from helmfile/move_upgrade_notice_env_into_envvar
2022-10-20 05:18:19 +08:00
yxxhero
420f5b2079
Merge pull request #451 from helmfile/445-01470-fails-to-execute-diff
...
fix helmfile diff error in window platform
2022-10-19 18:18:02 +08:00
yxxhero
94cc07cdf2
Merge pull request #446 from helmfile/fix_deps_args
...
fix: fix deps args
2022-10-19 18:15:43 +08:00
yxxhero
62cbeb661d
fix helmfile diff error in window platform
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-19 17:50:56 +08:00
yxxhero
61233badd5
fix: issue path in test on windows
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-19 08:46:43 +08:00
yxxhero
da2ce574b0
fix: fix deps args
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-18 22:01:05 +08:00
yxxhero
ed228c9c7e
move HELMFILE_UPGRADE_NOTICE_DISABLED into envvar file
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-15 14:22:51 +08:00
Rui Chen
ffce09a35f
deps: update dockerfile dependencies ( #421 )
...
* deps: helm 3.10.0
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-10-12 20:41:26 +08:00
Yusuke Kuoka
b7da0965f1
fixup! Address a lint error
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
ef115ba653
Address a lint error
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
85bfe64b90
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
caee32f7be
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
a2d5d82cb6
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
3e2285ea72
fixup! fixup! fixup! fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
f7f858cc52
fixup! fixup! fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
95065f8d28
fixup! fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
2ff0969e3b
fixup! fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
3a5d9efb20
fixup! fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
111a248523
fixup! Fix preapply hook behavior
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
c2ea0f0355
Fix preapply hook behavior
...
Fixes #399
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 08:20:51 +08:00
Yusuke Kuoka
e001f6f05d
Address golangci-lint finding
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 06:19:32 +09:00
Yusuke Kuoka
c762310a5f
fixup! Prevent excessive log in tests
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 06:19:32 +09:00
Yusuke Kuoka
31cd729fd4
Prevent excessive log in tests
...
I had been unhappy with the fact that our go-test output had a lot of debug log messages which obfuscated test results.
I'm finally removeing all those by directing the test log output to io.Discard.
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-11 06:19:32 +09:00
yxxhero
6a36f34c7d
fix: child process not exit when recive term signal ( #418 )
...
* fix: child process not exit when recive term signal
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix: wait for clean done
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-09 17:51:52 +09:00
yxxhero
ad257554c9
Merge pull request #419 from helmfile/405-helmfile-deps-cannot-create-a-lock-file-for-an-oci-repo
...
fix: helmfile deps issue with oci repo
2022-10-09 09:13:46 +08:00
yxxhero
d1c31e8c17
fix: helmfile deps issue with oci repo
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-09 08:56:52 +08:00
yxxhero
21c28ca6d0
feat: add reuse-values args for diff apply and sync ( #411 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-08 14:27:39 +09:00
yxxhero
8f7796b260
feat: optimize version output ( #412 )
...
* feat: optimize version output
Signed-off-by: yxxhero <aiopsclub@163.com>
* Update docs/index.md
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-08 14:26:15 +09:00