helm-secrets icon indicating copy to clipboard operation
helm-secrets copied to clipboard

helm secrets install fails when home folder has an '@' symbol

Open rudolphjacksonm opened this issue 5 years ago • 2 comments

When running helm secrets install I receive the following error due to there being an @ symbol in my home folder:

/Users/[email protected]/.helm/plugins/helm-secrets/secrets.sh: line 458: cmdopts[@]: unbound variable

I'm using a company laptop, hence the convention of having an email address as the user home folder. I'm assuming this is because of set -ueo is specified in secrets.sh but I could be wrong. I've commented out that line and it works for me now.

rudolphjacksonm avatar Apr 24 '19 11:04 rudolphjacksonm

Had the same issue, commenting out worked. The strange thing is it works for one chart but not for another and I cannot see the difference.

aramkarapetian avatar Dec 09 '19 10:12 aramkarapetian

I also had this issue, but for a different reason. I tried to run a standard helm upgrade ... command, but changing it to helm secrets upgrade .... This resulted in the error in the title of this issue. Looking at the secrets plugin script referenced in the error message it occurred to me that the helm secrets command was missing command line options (e.g., cmdopts). That was indeed the issue. Updating the command to helm secrets upgrade --values path/to/secrets.yaml ... worked.

A better error message would be helpful.

youngkin avatar Feb 14 '20 23:02 youngkin