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
yxxhero
e06abe4620
feat: add more clear error message and Environment info for template ( #413 )
...
* feat: add more clear error message and Environment info for template
Signed-off-by: yxxhero <aiopsclub@163.com>
* Update pkg/state/state.go
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-10-07 10:56:32 +09:00
Kevin Leturc
422852dd9a
feat: retrieve repository's username/password from environment
...
Signed-off-by: Kevin Leturc <kevinleturc@users.noreply.github.com>
2022-10-06 16:48:44 +02:00
yxxhero
bffa048dc6
Merge pull request #396 from helmfile/bump_yaml_v3
...
bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3
2022-10-05 10:12:25 +08:00
yxxhero
e6b263340d
Merge pull request #388 from helmfile/fix_retain_values_issue
...
fix SetRetainValuesFiles issue
2022-10-05 10:10:34 +08:00
Felipe Santos
f15bdbbb0c
Use helm show chart to identify chart version
...
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
2022-10-03 22:04:08 -03:00
mugioka
68728ef352
chore: add test for gatherOCIUsernamePassword.
...
Signed-off-by: mugioka <okamugi0722@gmail.com>
2022-10-03 15:45:40 +09:00
mugioka
a42c14e640
imprv: convert hyphen included in repo name to underbar with gatherOCIUsernamePassword.
...
Most shells do not support hyphens in environment variables.
However, there are cases where you may want to include hyphens in the repository name.
Therefore, I have included a process in `gatherOCIUsernamePassword` to replace hyphens with underbar.
Signed-off-by: mugioka <okamugi0722@gmail.com>
2022-10-03 14:49:03 +09:00
yxxhero
14ba7cd156
bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-03 05:24:51 +08:00
yxxhero
06cfdfc891
fix SetRetainValuesFiles issue
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-09-24 12:10:42 +08:00
yxxhero
a36f07cda3
fix path issue in windows
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-09-23 09:10:36 +08:00
Yusuke Kuoka
c90cace43b
fixup! Fix not to ignore diff selector when it matched nothing
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 04:46:52 +00:00
Yusuke Kuoka
6aeb6b38ba
Fix not to ignore diff selector when it matched nothing
...
Fixes #327
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 04:46:52 +00:00
Yusuke Kuoka
bb13ef68d7
fixup! Add more testcases for hooks
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 02:31:07 +00:00
Yusuke Kuoka
dc40ccde2e
Add more testcases for hooks
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 02:19:42 +00:00
Yusuke Kuoka
793050cc18
Defer implementing preapply hook start logs to another commit/pr
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 00:44:31 +00:00
Yusuke Kuoka
9e673ca902
Write preapply notice to debug log instead of info
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 00:27:33 +00:00
Yusuke Kuoka
5b1606df75
fixup! Updates based on review comments
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
3c0456c577
Updates based on review comments
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
1e9cce7d36
Fix lint errors
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
f0b76e9e26
Fixes for updates from rebase
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
fcdd852153
Add unittests for new preapply functions
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
ea56061609
Move preapply code to separate function
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
ca7942c751
Uncomment code that was accidentally commented out
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
eb2419aa15
Remove unnecessary if statement
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
c6e8afd3d0
Remove logic that limits execution of hooks to only once
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
32477e6cf2
Fix merge conflicts
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
db81f18095
Only run preapply or presync
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
1a3c11dffd
Add unittests for preapply
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
Anton Bretting
4e5987d833
Add preapply hook
...
Signed-off-by: Anton Bretting <sajfer@gmail.com>
2022-09-19 08:55:44 +09:00
yxxhero
0341027bc0
Merge pull request #371 from toVersus/fix/oci-pull-bug
...
fix: add missing untar flag to pull chart from oci registry
2022-09-18 19:36:39 +08:00
Tsubasa Nagasawa
7b40cefdda
fix: add missing untar flag to pull chart from oci registry
...
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2022-09-18 19:11:34 +09:00
yxxhero
18eee1fa47
move interactive option to global ( #370 )
...
Fixes #366
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-09-18 18:47:40 +09:00
Arpan
e1ca846772
added option for --no-hooks for helm diff and apply ( #279 )
...
* added option for --no-hooks for helm diff and apply
Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com>
* test case for --no-hooks
Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com>
* fix test fails
Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com>
* Resolve conflict with main
Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com>
* fixup! Resolve conflict with main
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Add no-hooks case for diff test
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* fixup! Add no-hooks case for diff test
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com>
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Co-authored-by: Arpan Adhikari <arpan@thephotostudio.com.au>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-18 18:41:27 +09:00
Jean-Yves CAMIER
b8cf0f156e
fix(oci): clean dead code ( #290 )
...
fix(oci): remove dead code
Signed-off-by: Jean-Yves CAMIER <jycamier@gmail.com>
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-18 16:34:16 +09:00
Rodrigo Fior Kuntzer
8408b021f0
feat: show live output from the Helm binary ( #286 )
...
* feat: show live output from the Helm binary
Signed-off-by: Rodrigo Fior Kuntzer <rodrigo@miro.com>
* fixup! Merge branch 'main' into enable-live-output
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-18 14:24:35 +09:00
KqLLL
0fbcb07bad
Support helm-secrets v4.0.0 ( #360 )
...
Support helm-secret v4.0.0
Signed-off-by: KqLLL <lllkq546449541@gmail.com>
2022-09-17 19:54:28 +09:00
yxxhero
3ff98c02a1
Merge pull request #359 from helmfile/358-incorrect-exit-code
...
Fix incorrent exit code issue introduced in v0.145.0
2022-09-14 08:51:16 +08:00
yxxhero
ade8e81cc1
Merge pull request #342 from helmfile/339-introduction-of-skip-needs-results-in-breaking-change
...
Fix --skip-needs regression introduced in v0.145.0
2022-09-14 08:50:38 +08:00
yxxhero
76bf9952b9
fix incorrent exit code
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-09-13 08:23:55 +08:00
yxxhero
bf323b4021
fixed: fix skip-needs issue
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-09-12 18:04:20 +08:00
Viktor Oreshkin
af52c960f4
chore: list: withPreparedCharts -> skipCharts
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-06 09:54:51 +03:00
Viktor Oreshkin
4dd73d4efb
test: move TestListWithJSONOutput to app_list_test
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-06 09:48:47 +03:00
Viktor Oreshkin
1838ec0a11
fix: make func names in app_list_test consistent
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-06 09:48:17 +03:00
Viktor Oreshkin
ebf0f370a1
fix: add missing concurrency option to List
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-06 09:43:56 +03:00
Viktor Oreshkin
f3788249e4
feat: add flag to list to skip prepare
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-05 18:12:17 +03:00
Viktor Oreshkin
8b0ad72e77
feat: dont prepare on list
...
This changes list command so it doesn't run withPreparedCharts,
and just lists releases instead
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-05 13:37:00 +03:00
Viktor Oreshkin
822b7b2a9b
feat: honor concurrency in withPreparedCharts
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-01 02:08:54 +03:00
yxxhero
9284d1764e
Add --interactive option to sync, delete and destroy / Remove --interactive from global options ( #328 )
...
* add interactive in sync & remove --interactive in global options
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix unittest
Signed-off-by: yxxhero <aiopsclub@163.com>
* same behave as apply when in interactive
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-28 10:36:07 +09:00
Arkaitz Jimenez
cc33e7b7d8
Introduce Helmfile's own filesystem abstraction to correctly unit test some components ( #307 )
...
Use abstracted FS
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-24 12:58:43 +09:00
yxxhero
7972a8921c
Merge pull request #301 from mikelorant/fix/diff-context
...
fix: return diff context config value
2022-08-18 15:09:23 +08:00
Michael Lorant
b616a8b690
fix: return diff output config value
...
Signed-off-by: Michael Lorant <michael.lorant@fairfaxmedia.com.au>
2022-08-18 17:06:31 +10:00
Michael Lorant
86deeb377d
fix: return diff context config value
...
Signed-off-by: Michael Lorant <michael.lorant@fairfaxmedia.com.au>
2022-08-18 16:40:05 +10:00
Arkaitz Jimenez
4553efdcf1
Formatting
...
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-16 16:25:24 +02:00
Arkaitz Jimenez
684be0af50
Missing context readDir, required for any template using readDir* functions
...
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-16 16:25:24 +02:00
Yusuke Kuoka
bb056a4ffc
fixup! Merge branch 'main' into update_golang_lint
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-08-14 04:06:45 +00:00
Yusuke Kuoka
89950f3794
Merge branch 'main' into update_golang_lint
2022-08-14 12:21:10 +09:00
yxxhero
94b7a6c128
Cleanup pkg/config/config.go ( #287 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-14 12:17:02 +09:00
David Ackroyd
cf94a4edb3
Fix Inclusion of Releases for Other Environments ( #276 )
...
Fixing releases being included which do not match the environment
requested, which is a regression introduced by #234 . The issue remains
when Helmfile state values are supplied, which is not a regression and
will be addressed separately.
Partial resolution for #271
Signed-off-by: David Ackroyd <dackroyd@fairfaxmedia.com.au>
Signed-off-by: David Ackroyd <dackroyd@fairfaxmedia.com.au>
2022-08-14 10:47:47 +09:00
yxxhero
8690d63401
fix lint error
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-13 07:40:32 +08:00
Vladimir Kuznichenkov
6c1b6f855a
Add file existence check for remove values
...
If remote file isn't present in repo we will add it anyway to the files list and check `if len(files) == 0 {` never will be true. That leads to missing section with `MissingFileHandler`.
That fix check that cloned file actually exists. In that case if we add a link to non-existing remote file `MissingFileHandler` will be called as expected.
Signed-off-by: Vladimir Kuznichenkov <kuzaxak.tech@gmail.com>
2022-08-12 10:01:56 +03:00
yxxhero
6a37ae9650
Add flags about need for lint subcmd ( #273 )
...
* fix typo
Signed-off-by: yxxhero <aiopsclub@163.com>
* add flags about needs for lint subcmd
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-08 10:32:30 +09:00
Sergii Iefremov
5ac1e1fb98
feat: fix needs error with context that includes slash
...
Signed-off-by: Sergii Iefremov <sergii.iefremov@axios.com>
2022-08-04 11:18:57 -04:00
yxxhero
9af8f1286a
Merge pull request #254 from vasicvuk/main
...
Implement readDirEntries method
2022-07-27 19:00:38 +08:00
vasicvuk
68d7c5f6a4
Implement readDirEntries method
...
Signed-off-by: vasicvuk <vuk.vasic@asseco-see.rs>
2022-07-26 16:20:38 +02:00
yxxhero
4e9b99d10e
Merge pull request #258 from xiaomudk/patch-4
...
fix: OCI Url and Version parse error
2022-07-23 21:14:04 +08:00
xiaomudk
59ffa687df
fix: OCI Url and Version parse error
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-07-23 20:52:32 +08:00
xiaomudk
cf62499d4a
test: Add unit tests for ChartPull
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-07-23 18:41:59 +08:00
xiaomudk
70fd920384
test: Add unit tests for ChartExport
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-07-23 16:32:09 +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
Quan TRAN
9884e4fdb1
(fix) path on windows
...
ci
on canary build, version should show "0.0.0-dev"
Signed-off-by: Quan TRAN <account@itscaro.me>
2022-07-18 11:07:58 +02:00
yxxhero
ac23def893
add Go lint
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-16 20:21:11 +08:00
Yusuke Kuoka
cc13492623
Merge pull request #201 from magicmemories/fix/helm-secrets-view
...
fix: use helm secrets view rather than helm secrets dec to decrypt
2022-07-16 21:04:48 +09:00
Adam Gardner
a93661d382
chore: remove obsolete exemption of os.PathError in test case
...
Signed-off-by: Adam Gardner <adam.gardner@magicmemories.com>
2022-07-10 09:15:18 -10:00
Radon Rosborough
de6a9aeebf
Fix Test_DecryptSecretWithGotmpl
...
Signed-off-by: Radon Rosborough <rrosborough@plaid.com>
2022-07-07 16:26:33 -10:00
Radon Rosborough
c1eb7f0623
Fix Test_DecryptSecret
...
Signed-off-by: Radon Rosborough <rrosborough@plaid.com>
2022-07-07 16:26:33 -10:00
Adam Gardner
74c1f9e9a0
fix: use helm secrets view rather than helm secrets dec to decrypt
...
Signed-off-by: Adam Gardner <adam.gardner@magicmemories.com>
chore: fix test case broken by change of helm subcommand
Signed-off-by: Adam Gardner <adam.gardner@magicmemories.com>
2022-07-07 16:26:12 -10:00
yxxhero
9179cfb55f
fix deps issue
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-06 08:37:19 +08:00
yxxhero
9b0293d9ea
fix within func issue ( #209 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-05 17:50:43 +09:00
yxxhero
ae5e93d71d
Merge pull request #200 from magicmemories/fix/invalid-path-on-windows
...
Fix/invalid path on windows
2022-06-30 14:00:07 +08:00
Adam Gardner
e106d105ce
Don't make unnecessary whitespace changes
...
Signed-off-by: Adam Gardner <adam.gardner@magicmemories.com>
2022-06-29 15:06:40 -10:00
Adam Gardner
a81c8fa4e1
chore: rename test so that snapshot data lives at valid path on all filesystems
...
Signed-off-by: Adam Gardner <adam.gardner@magicmemories.com>
2022-06-29 15:06:40 -10:00
Eng Zer Jun
ce3b81e2a1
test: use `T.Setenv` to set env vars in tests ( #189 )
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-06-30 09:15:34 +09:00
yxxhero
5bd5f72170
add unittest for text_renderer.go ( #168 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-29 20:33:15 +09:00
Yusuke Kuoka
fc306ec3d1
Make a few helmfile sub-commands consistently support needs-related flags ( #78 )
...
* Make a few helmfile sub-commands to consistently support needs-related flags
* helmfile-diff adds support for --include-transitive-needs
* helmfile-template adds support for --skip-needs
* helmfile-lint adds support for --skip-needs, --include-needs, and --include-transitive-needs
Ref https://github.com/roboll/helmfile/issues/2055
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix a few helmfile-lint needs related bugs and add tests
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Is include-transitive-needs realy working as intended? 🤔
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Confirm that it does fail on unselected need by default
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Add missing testdata
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Test helmfile-template for include/skip needs support
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix a few terms
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Add more tests to better know the current helmfile-diff behavior around needs
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix failing tests
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix helmfile-diff to consistently handle skip/include-needs
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Extract testhelper.RequireLog for reusing
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix all bugs and test cases for TestDiff and TestDiff_2
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix TestDiff_2
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix TestDiff
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix TestDiffWithNeeds
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Unify behavior on including disabled releases as needs for lint and template
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Fix bug that --include-transitive-needs does not imply include-needs
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-20 07:19:39 +09:00
Sergio Morales
414db47428
chore(state): Append Api Versions flags to helm-diff ( #107 )
...
* chore(state): Append Api Versions flags to helm-diff
Signed-off-by: Sergio Morales <sergio@cornershopapp.com>
* chore(state): Added unit test to state.flagsForDiff
Signed-off-by: Sergio Morales <sergio@cornershopapp.com>
* chore(state): Check Helmstate values if ReleaseSpec values aren't set
Signed-off-by: Sergio Morales <sergio@cornershopapp.com>
2022-06-05 15:18:54 +09:00
Quan TRAN
577f54af7a
Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions ( #1 )
...
* introduce DISABLE_INSECURE_FEATURES to disable insecure executions
Signed-off-by: Quan TRAN <account@itscaro.me>
* disable remote sources when DISABLE_INSECURE_FEATURES is set to "true"
Signed-off-by: Quan TRAN <account@itscaro.me>
* refactor envvar package
Signed-off-by: Quan TRAN <account@itscaro.me>
* (test) fix test fixtures
Signed-off-by: Quan TRAN <account@itscaro.me>
* use absolute path to avoid unit test failure
Signed-off-by: Quan TRAN <account@itscaro.me>
* Fix conflicts
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 15:15:06 +09:00
Dominic
789af92c09
Adds feature to fetch release values and secret values from remote ( #47 )
...
* Adds feature to fetch environment values from remote
The releases and environment section allow for values files on the local
disk.
This enhancement allows for referencing remote (go-getter) files to be
fetched, cached and referenced.
In addition when fetching a remote git source with a ssh key the ssh key
will not be part of the caching folder name. This avoids two problems:
1. Don't leak sensitive information in the name of the caching folder
2. Base64 encoded SSH keys are very long. On some file systems the max
lenght of the directory name is hit when using the full base64
information in the path name.
The sshkey informations are reducted. Because of this fixed string
there is a change of colloding cache names. The likelihood of this
collision is very low. The git repo and git reference need to be the
same, but the sshkey can change. This will result in the same source to
be checkout out and referenced.
Signed-off-by: Lüchinger Dominic <dev@snowgarden.ch>
* Update pkg/state/storage.go
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 15:08:38 +09:00
yxxhero
aaf2126f91
little code optimize
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-05 12:58:55 +08:00
Yusuke Kuoka
7c34e2e1b7
Merge pull request #83 from yxxhero/refactor_main
...
reconstruct main function
2022-06-05 13:27:04 +09:00
Yusuke Kuoka
b986b3de9f
Merge pull request #99 from yxxhero/add_e2e_tmpl_test
...
add e2e tmpl test
2022-06-05 13:23:08 +09:00
yxxhero
8024949d48
reconstruct_main_function
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-01 07:32:36 +08:00
Quan TRAN
a92c574a98
Merge pull request #112 from yxxhero/remove_unused_comments
...
remove unused comments
2022-05-30 23:12:19 +02:00
Quan TRAN
0cfef76f0d
Merge pull request #88 from chubchubsancho/validate_manifest_on_sync
...
feat: allow --validate on sync command
2022-05-30 10:11:53 +02:00
yxxhero
0c57129aab
remove unused comments
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-30 10:08:19 +02:00
yxxhero
33c66a6f46
add readfile e2e test
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
Yusuke Kuoka
281fe9bf59
Merge pull request #101 from austince/rename-module
...
Rename module to github.com/helmfile/helmfile
2022-05-22 15:19:16 +09:00
austin ce
eb3484d4a8
Rename module to github.com/helmfile/helmfile
...
Also updates a few more references to the roboll/helmfile repository,
where possible.
Signed-off-by: austin ce <austin.cawley@gmail.com>
2022-05-18 10:05:07 -04:00
Grégory SANCHEZ
62747378ca
feat: allow --validate on sync command
...
This will permit usage of `--validate` options with sync command
Signed-off-by: Grégory SANCHEZ <gregory.sanchez@icloud.com>
2022-05-17 14:00:55 +02:00
yxxhero
10c3eb61a5
fix issue in context_funcs.go
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-17 17:37:47 +08:00
yxxhero
d83e9214e6
rename execEnvs to envExec
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-17 08:30:46 +08:00
Quan TRAN
f7ef07ff94
Merge pull request #95 from yxxhero/add_execEnvs
...
[feat] add execEnvs
2022-05-16 17:13:57 +02:00
yxxhero
a320fccdd2
update unittest for execEnvs
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-16 22:54:31 +08:00
yxxhero
1258c9ed10
add execEnvs
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-14 09:59:08 +08:00
yxxhero
faef77d143
add unittest for error.go in pkg/app
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-28 09:01:02 +08:00
Yusuke Kuoka
cc6edc18b6
Merge pull request #69 from yxxhero/remote_temp_rand
...
remove temp_rand and use k8s.io/apimachinery/pkg/util/rand
2022-04-28 06:07:43 +09:00
yxxhero
218d7a6f0a
remove temp_rand and use k8s.io/apimachinery/pkg/util/rand
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-27 13:54:06 +08:00
yxxhero
eeb2eee099
fix unittest issue for context.go
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-27 10:57:26 +08:00
yxxhero
e2cb7fe176
add unittest for context.go
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-27 09:30:40 +08:00
yxxhero
04d364a467
add unittest for ValidateConfig
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-27 07:38:22 +08:00
Yusuke Kuoka
aef233489f
Merge pull request #62 from yxxhero/newExecutionID_unittest
...
Add unittest for newExecutionID
2022-04-25 08:40:45 +09:00
yxxhero
45c983a0bb
Add unittest for newExecutionID
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-24 13:55:28 +08:00
Yusuke Kuoka
1bcf6a7bb1
Merge pull request #52 from yxxhero/feat_inherit_environment_variables_for_Exec
...
add unittest for Exec
2022-04-22 12:21:31 +09:00
yxxhero
33f733026b
remove cmd.Env set
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-22 08:36:02 +08:00
yxxhero
d26f83c460
add unittest for Exec and add feature that inherit the environment variables from the parent process for Exec
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-21 19:29:32 +08:00
yxxhero
88f17e6c9a
fix more go lint warn
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-20 16:26:06 +08:00
yxxhero
8b15272cbc
fix go lint warn
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-20 15:59:12 +08:00
yxxhero
a0d4047cc7
remove gotest deps
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-19 08:02:21 +08:00
yxxhero
b895f75198
add unittest for constants.go
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-18 17:15:04 +08:00
Yusuke Kuoka
42ad7beb6e
Merge pull request #24 from helmfile/auto-detect-term-for-color-diff
...
feat: Auto-detect term for coloring helm-diff output
2022-04-15 07:24:42 +09:00
Yusuke Kuoka
a4542265ca
Merge pull request #23 from helmfile/fix-helmfile-deps-chartify
...
Fix helmfile deps not to remove entries for charts that are being chartified
2022-04-15 07:24:20 +09:00
Yusuke Kuoka
f84ab66ba0
Make --color and --no-color exclusive
...
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-04-13 23:43:41 +00:00
Yusuke Kuoka
47e13fcdad
Merge pull request #34 from dol/feature/redacted-url-in-chart-name
...
Redact sensitive informations like password in chart url
2022-04-14 08:28:25 +09:00
Yusuke Kuoka
7af57add9d
Merge pull request #37 from itscaro/qtran/fix-temp-dir
...
Fix non-existent custom temp dir
2022-04-14 08:27:41 +09:00
Yusuke Kuoka
d0841c72aa
Merge pull request #22 from itscaro/qtran/issue-2118
...
(fix) chartify process when chart path is absolute
2022-04-14 08:25:13 +09:00
Lüchinger Dominic
f89234e5dc
Redact sensitive informations like password in chart url
...
Signed-off-by: Lüchinger Dominic <dev@snowgarden.ch>
2022-04-13 00:47:32 +02:00
Quan TRAN
12e103d510
(fix) non-existent custom temp dir
...
Signed-off-by: Quan TRAN <account@itscaro.me>
2022-04-12 22:27:59 +02:00
Quan TRAN
88127d641b
[fix] chartify process when chart path is absolute
...
Signed-off-by: Quan TRAN <account@itscaro.me>
2022-04-11 23:34:52 +02:00
yxxhero
9c0c021dc9
fix typo in state.go
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-11 23:33:25 +02:00