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
Yusuke Kuoka
97e0ca73ca
feat: Auto-detect term for coloring helm-diff output
...
Since helm-diff has added an ability to auto-detect the term to decide if it should output with color or not, helmfile had been defaulted to no-color.
This resoloves that, by adding a term-detection logic that is same as helm-diff.
As a part of this work, I have also implemented a new global flag `--color`, which is used for forcing color without relying on the term-detection logic implemented in helmfile or explicitly setting the HELM_DIFF_COLOR envvar. I hope it is useful for folks.
Ref https://github.com/roboll/helmfile/issues/2043
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-04-06 02:38:36 +00:00
Yusuke Kuoka
8e50dbc46d
Fix helmfile deps not to remove entries for charts that are being chartified
...
When chartify is involved due to the use of `forceNamespace`, `strategicMergePatches`, `jsonPatches`, and so on, We had been internally mutating the Release.Chart with the path to the local temporary directory that contains the modified version of the chart.
This resulted in us unintentionally making `helmfile deps` to remove entries for the chart being modified out of helmfile.lock file, which resulted in issues like #2110 .
To be clear, although the original issue is reported to occur for `strategicMergePatches`, I believe that it occurered also for any remote charts using `jsonPatches` and `forceNamespace` too.
I also believe this has been the issue since our introduction of chartify (maybe a year or so ago??), and I guess why it took so much time to be found and reported is that not so many people with chartify in combination with `helmfile deps` 🤔
Lastly, this changes chart names surfaced in the various log output from Helmfile, from temporary chart paths to the chart name/path declared in the helmfile.yaml. I think this is generally a good change, no fear of being a breaking change. But if anyone has any concern about that, please feel free to comment/report/etc.
Ref https://github.com/roboll/helmfile/issues/2110
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-04-06 02:12:08 +00:00
Yusuke Kuoka
f49d181b41
Merge pull request #20 from itscaro/qtran/fix-decrypted-file
...
[fix] unclosed file stream when creating temporary decrypted files
2022-04-06 08:37:13 +09:00
Yusuke Kuoka
3f1d01a688
Merge pull request #18 from yxxhero/add_unittest_RequiredEnv
...
add unittest for RequiredEnv func
2022-04-06 08:35:26 +09:00
Yusuke Kuoka
e8212276d5
Merge pull request #17 from yxxhero/update_args_unitest
...
update args_test.go unittest
2022-04-06 08:32:35 +09:00
Quan TRAN
a793797404
[fix] unclosed file stream when creating temporary decrypted files
...
Signed-off-by: Quan TRAN <account@itscaro.me>
2022-04-05 22:52:17 +02:00
yxxhero
5cb82ec3d1
add unittest for RequiredEnv func
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-05 22:53:07 +08:00
yxxhero
8e5c779626
update args_test.go unittest
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-05 06:26:42 +08:00
yxxhero
02058cc1f5
add unittest for load_opts.go
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-04 17:20:54 +08:00