zendesk / helm-secrets

DEPRECATED A helm plugin that help manage secrets with Git workflow and store them anywhere
Apache License 2.0
1.16k stars 155 forks source link

helm secret "invalid option" issue with helm3 #135

Open nomis-rzp opened 5 years ago

nomis-rzp commented 5 years ago

With helm3 while running the helm secret ... command its giving the following error

Command: helm secrets install -n myrelease ./mychart-f ./mychart/secrets.yaml Error:

Error: unknown flag: --client
helm install: invalid option -- n
helm install: invalid option -- f
Error: plugin "secrets" exited with error

Output of helm version: version.BuildInfo{Version:"v3.0.0-beta.3", GitCommit:"5cb923eecbe80d1ad76399aee234717c11931d9a", GitTreeState:"clean", GoVersion:"go1.12.9"}

Could you please let me know if this is a known issue, or if I am missing anything here?

rimusz commented 5 years ago

helm v3 doesn't have --client flag, this it fails for you

try to clone the repo and remove --client --short in https://github.com/futuresimple/helm-secrets/blob/master/secrets.sh#L389

nomis-rzp commented 5 years ago

It throws another error

helm install: invalid option -- n
Error: plugin "secrets" exited with error
rimusz commented 5 years ago

let's leave that to plugin maintainers to answer

etcinit commented 5 years ago

Patching secrets.sh to remove the --client parameter worked fine for me. Basically, Helm 3 doesn't have a server component so there's no need to specify that you need the client's version.

It throws another error

helm install: invalid option -- n Error: plugin "secrets" exited with error

I think the reason you are getting an error is because you are using the -n parameter to give the release a name. However, on Helm 3, this is no longer an option and is an argument that needs to be provided when calling helm install.

I would patch secrets.sh and try:

helm secrets install myrelease ./mychart -f ./mychart/secrets.yaml
scottrigby commented 5 years ago

Helm v3.0.0 has been released! https://helm.sh/blog/helm-3-released/

Also the --client flag has been added for backwards-compatibility https://github.com/helm/helm/pull/6868

Does that change the status of this issue? Not able to test with helm secrets at the moment

tblazina commented 5 years ago

I am able to run helm secrets install release_name -f values.yaml -f secrets.yaml . with:

version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

@nomis-rzp, I was having the same issue as you running Helm v3.0.0-beta.3, if you upgrade to v.3.0.0, it should work!

graidelak commented 4 years ago

I'm having issue with helm secrets using helm v3

version.BuildInfo{Version:"v3.0.0",GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

this is the error:

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: [unknown object type "nil" in Secret.data.AWS_ACCESS_KEY_ID

Any idea? for helm v2 was working fine.