sonatype-nexus-community / helm-nexus-push

A plugin for helm that will push a chart to a Nexus Hosted Repository
Apache License 2.0
43 stars 47 forks source link

Unable to use the plugin due to unbound variable #3

Open pamiel opened 5 years ago

pamiel commented 5 years ago
fredgate commented 5 years ago

Same error. Can not push in anonymous mode If I push by specifying a user and a passord helm nexus-push nexus mychart-0.2.1.tgz -u admin -p secret I got another similar error : .helm/plugins/helm-nexus-push.git/push.sh: line 126: AUTH: unbound variable

RaphC commented 4 years ago

Hi,

Same error. My workaround is to set --password "". Not very clean but I can use login cmd to hide password

helm nexus-push nexus mychart-0.2.1.tgz --password ""

vce-xx commented 3 years ago

Same here. I was trying to use my user/pwd declared with helm nexus-push login (neat !)

Script is failing due to the "-u" option specified with set -ueo pipefail when some undefined variables are tested.

Fixed it like by editing push.sh On MacOS, `vi ~/Library/helm/plugins/helm-nexus-push.git/push.sh``

Changed this:

declare USERNAME
declare PASSWORD

with this

declare USERNAME=""
declare PASSWORD=""

in order to provide default values.