yxxhero
0c3951097e
fix #1095 ( #1100 )
...
* fix #1095
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-11-01 11:55:55 +08:00
yxxhero
54da9dab87
fix chartify with non-chart dir ( #1105 )
...
* fix chartify with non-chart dir
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-10-31 13:45:10 +08:00
yxxhero
9c1cf61559
enable run skip-diff-output tests ( #1104 )
2023-10-28 21:04:02 +08:00
yxxhero
e4184a48b4
update keyring docs ( #986 )
...
* update docs about keyring
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-08-23 01:17:07 -05:00
yxxhero
67ab08ab5e
fix: oci pull directory conflict when download twice ( #914 )
...
* fix: oci pull directory conflict when download twice
Signed-off-by: yxxhero <aiopsclub@163.com >
* add test cases
2023-07-23 21:10:03 +08:00
Jan-Otto Kröpke
d1c260af5f
feat: Allow to skip diff output on release base ( #906 )
...
* feat: Allow to skip diff output on release base
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de >
* fix tests
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* feat: Allow to skip diff output on release base
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de >
* fix tests
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* s/skipDiffOutput/suppressDiff
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* s/skipDiffOutput/suppressDiff
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
* fix tests
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de >
---------
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de >
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de >
2023-07-02 07:50:59 +08:00
yxxhero
afcc9e4b80
fix: chartifyOpts ignore release set values ( #896 )
...
* fix: chartifyOpts ignore release set values
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-06-13 23:28:27 +08:00
yxxhero
1843cc447e
Add insecure skip tls verify support ( #882 )
...
* feat: add insecure-skip-tls-verify support
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-06-04 16:34:24 +08:00
yxxhero
e67eb0c973
Upgrade helm diff version ( #883 )
...
feat: bump helm diff to v3.8.0
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-06-04 10:29:32 +08:00
yxxhero
ae77967bf2
cleanup: remove tls configures about helm v2 ( #880 )
2023-06-03 22:02:46 +08:00
xiaomudk
c498af3f52
Fix set flag are ignored when used in conjunction with jsonPatches ( #867 )
...
* Fix set flag are ignored when used in conjunction with jsonPatches
Signed-off-by: xiaomudk <xiaomudk@gmail.com >
2023-05-24 07:29:19 +08:00
yxxhero
643f888703
fix: loadBases overrodeEnv issue ( #838 )
2023-05-08 05:24:32 +08: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
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
b44aaf90f7
remove helm v2 code in tests ( #648 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-01-24 07:02:57 +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
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
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
yxxhero
d8d0bf830a
Add helmfile state validate policy ( #592 )
2022-12-21 10:49:31 +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
yxxhero
211852cd38
use dyff as yamldiff tool ( #542 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-11-27 09:47:09 +09:00
yxxhero and Yusuke Kuoka
5c5dc42ef5
Refactor integration tests ( #531 )
...
* refactor integrations
Signed-off-by: yxxhero <aiopsclub@163.com >
* Update the integration test directory structure to better correlate the test script with testdata
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* Undo the test-cases directory renaming to make the diff more easy to understand
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
* fix ci
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com >
2022-11-23 14:44:16 +09: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
xiaomudk
766c1c951f
Remove redundant metadata fields from test samples
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com >
2022-11-22 10:33:05 +08: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
yxxhero
82004b53f9
split run.sh to make run.sh be more clear. ( #485 )
...
split run.sh
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-11-04 10:51:57 +09:00
yxxhero
2e7261426a
fix chart needs test issue
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-10-28 14:45:24 +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
yxxhero
bdaafdff67
feat: add helm-diff and kustomize in ci matrix ( #434 )
...
* feat: add helm-diff and kustomize in ci matrix
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-10-13 08:08:58 +08: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
69d77507ee
update helm-diff version to 3.5.0 ( #379 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-10-05 11:02:49 +09:00
yxxhero
b347eec6f2
add more tests
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-10-03 11:47:46 +08:00
yxxhero
5367fbe549
add more tests
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-10-03 11:24:58 +08:00
yxxhero
f6fd754386
add more tests
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-10-03 11:09:02 +08: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
86072ca200
use helmfile testdata
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-08-28 10:36:21 +09:00
yxxhero
7434872c6b
fix ci error in issue.2118.yaml ( #319 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-08-26 10:59:28 +09:00
yxxhero
6e5a726ae5
fix ci issue ( #131 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-06-05 15:31:36 +09:00
yxxhero
070ed0dd47
fix intergration test for argo-cd form master to main branch
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-05-30 07:45:01 +08:00
Quan TRAN
3cae3f4f89
add integration test
...
Signed-off-by: Quan TRAN <account@itscaro.me >
2022-04-11 23:41:28 +02:00
Yusuke Kuoka
1735fb5bed
Bump helm-diff to version 3.3.1 ( #2041 )
...
helm-diff 3.3.1 adds a new option `HELM_DIFF_THREE_WAY_MERGE=true` which enables the use of there-way merge for diff, which is expected to fix #2013
2022-01-10 16:21:14 +09:00
Yusuke Kuoka
72e71608b1
Fix chartify regression of missing chart dependencies ( #1869 )
...
* Fix chartify regression of missing chart dependencies
Fixes https://github.com/roboll/helmfile/issues/1867
* Add integration test cases for issues #1857 and #1867
2021-06-08 13:06:26 +09:00
Yusuke Kuoka
44fb68b7e0
Use the incubator chart repo instead of chartcenter ( #1833 )
...
As ChartCenter has been shut down.
Ref https://github.com/roboll/helmfile/pull/1829#issuecomment-833330609
2021-05-08 17:33:24 +09:00
astorath and Andrey Tuzhilin
83189dbad3
Enable helmfile-diff to pass the output format to helm-diff ( #1784 )
...
* tests: fix vagrant test run
* feat: added an option to specify the different diff output format
* renamed diff-output to output
* renamed diff-output to output
Co-authored-by: Andrey Tuzhilin <andrey@zelf.co >
2021-04-24 08:07:24 +09:00
Yusuke Kuoka
28ade19419
Bump chartify to 0.8.2 ( #1793 )
...
* Bump chartify to 0.8.2
This version fixes charitfy not to fail when you used the combination of (1)helm 3 and (2)strategicMergePatches/jsonPatches/transformers etc that triggers chartify on (3)a chart that contains CRDs.
See https://github.com/roboll/helmfile/issues/1778#issuecomment-824451990 for details of the issue.
The chartify-side of this fix is https://github.com/variantdev/chartify/commit/55b23f9e9d43ae1105a536a659fa35f004806b2a
Fixes #1778
2021-04-23 09:53:52 +09:00
Quan TRAN and Yusuke Kuoka
c65bdff62c
Respect release filter in lint and status ( #1672 )
...
Ref #1190
Fixes #1651
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com >
2021-04-06 15:47:29 +09:00
Philipp Hossner and Yusuke Kuoka
85accf7330
Add helm-secrets-encrypted values template file ( #1701 )
...
Secret files ending with .gotmpl are now also rendered as a gotemplate.
```
releases:
- name: myapp
secrets:
- secrets.yaml.gotmpl
```
Note that currently, .gotmpl files must be valid YAML files as well.
The expected use-case of this feature is to compose a YAML array from values and encrypted secrets.
Without this feature, you would have tried to do something like the below, which didn't work.
**Example (doesn't work!)**
`values.yaml.gotmpl`:
```
environment:
- name: MY_EXTERNAL_IP
value: |
{{ exec "./get-external-ip.sh" (list "") }}
```
`secrets.yaml`:
```
_sops:
#...
environment:
- name: MY_SECRET_VALUE
value: (encrypted by sops)
```
`helmfile.yaml`:
```
releases:
- name: foo
values:
- values.yaml
secrets:
- secrets.yaml
```
This doesn't work because `values.yaml` and the decrypted `secrets.yaml` are passed to `helm` to be merged, and helm overrides the array instead of merging or concatenating the arrays.
**Example (works!)**
Instead of `values.yaml` and `secrets.yaml`, you provide a single `secrets.yaml.gotmpl` that is a valid YAML and encrypted by sops:
```
_sops:
#...
environment:
- name: MY_EXTERNAL_IP
value: |
{{ exec "./get-external-ip.sh" (list "") }}
- name: MY_SECRET_VALUE
value: (encrypted by sops)
```
`helmfile.yaml`:
```
releases:
- name: foo
secrets:
- secrets.yaml.gotmpl
```
Helmfile decrypts the gotmpl by handing it over to helm-secrets and then renders the result as a gotmpl file. The end result is that you have a two-element array `environments` that can be just passed to helm.
Resolves #1700
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com >
2021-04-06 14:20:42 +09:00
astorath
aafe74a3e1
Fix/secrets ordering ( #1726 )
...
Fixes issue introduced in #790 : the order of secrets merged is not defined now, leading to unpredictable results in `helmfile apply`.
2021-03-23 18:00:57 +09:00
Andrey Tuzhilin
4efaa656f9
test: return all tests
2021-03-23 17:19:40 +09:00