New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support helm-secrets v4.0.0 #360
Support helm-secrets v4.0.0 #360
Conversation
@KqLLL ping |
@KqLLL I feel that we should be compatible with at least three versions of helm-secret at the same time. |
@KqLLL example: |
I think the parameters are judged according to the major version number? |
add testcase for helm-secret version 3 and 4 @KqLLL Thanks very much. |
testcase , Is this feasible? v3 ➜ cluster-infra git:(master) ✗ helm plugin list
NAME VERSION DESCRIPTION
diff 3.1.3 Preview helm upgrade changes as a diff
secrets 3.15.0 This plugin provides secrets values encryption for Helm charts secure storing
➜ cluster-infra git:(master) ✗ ~/go/bin/helmfile-test -e minor template > output
Adding repo vmware-tanzu https://vmware-tanzu.github.io/helm-charts
"vmware-tanzu" has been added to your repositories
Decrypting secret /Users/lllkq/Projects/kube-infra/cluster-infra/values/velero/secrets.yaml
Templating release=velero, chart=vmware-tanzu/velero v4 ➜ cluster-infra git:(master) ✗ helm plugin list
NAME VERSION DESCRIPTION
diff 3.1.3 Preview helm upgrade changes as a diff
secrets 4.0.0 This plugin provides secrets values encryption for Helm charts secure storing
➜ cluster-infra git:(master) ✗ ~/go/bin/helmfile-test -e minor template > output
Adding repo vmware-tanzu https://vmware-tanzu.github.io/helm-charts
"vmware-tanzu" has been added to your repositories
Decrypting secret /Users/lllkq/Projects/kube-infra/cluster-infra/values/velero/secrets.yaml
Templating release=velero, chart=vmware-tanzu/velero |
@KqLLL Please fix ci issue. |
ok |
Fixed |
Good works. I have a idea. We can use github matrix to test helm-secrets version contains 3.x 4.x. WDYT? @KqLLL |
Sounds good, I will try it. |
Signed-off-by: KqLLL <lllkq546449541@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Thanks a lot for making it backward-compatible. I love the idea of supporting two major versions of the plugin- it would allow users to gradually migrate to a newer plugin version. I also love how you wrote comprehensive test cases for this change. Definitely LGTM!
Helm-secrets has been released to v4.0.0 and the secret view command has been deprecated.
Helm-secrets change log, Helm secret view command. The helm secret decrypt command is a drop-in replacement.