Closed mparada closed 2 years ago
Sorry... Only now I saw there are 2 PRs related to this issue:
Should I close this issue? Any idea when one of the PR will be merged?
I found a solution. Apparently the helm plugin install
is not actually needed. Simply unpack the release binary into a folder in the helm env HELM_PLUGINS
location.
mkdir -p "$(helm env HELM_PLUGINS)/helm-push"
tar -C "$(helm env HELM_PLUGINS)/helm-push" -xzf <dowloaded release binary>
That installs it correctly without any error. You can check with helm plugin list
.
I'm going to close the issue. If the maintainers agree with this solution I would advise to put it somewhere in the docs. Maybe in the README in the Install section.
Description
If I try downloading a release binary and installing it I get the following error:
sh: scripts/install_plugin.sh: No such file or directory
To reproduce
wget https://github.com/chartmuseum/helm-push/releases/download/v0.9.0/helm-push_0.9.0_linux_amd64.tar.gz
helm plugin install helm-push # here the folder name is used again
Environment
Notes
The plugin itself appears in
helm plugin list
and seem (so far) to be working. It is just the installation that throws an error. I'm not sure this is reproducible though. I tried uninstalling it and re-installing it and it is always is the same but I also once installed from github directly (helm plugin install https://github.com/chartmuseum/helm-push
) and maybe some configuration file was left behind 🤷♂️Ideas
It tries to look into the
scripts
folder but this is not part of the release tar file. Also, thescripts/install_plugin.sh
file tries to fetch data from github (lines 55 and 57). My guess is that lines 54-59 ininstall_plugin.sh
is not necessary if installing directly from the binary. Maybe wrap that code in a conditional clause that checks if the binary is already downloaded? Or an alternatescripts/install_plugin_local.sh
file (without those lines) that is also packaged in the release tar file and mentioned accordingly inplugin.yaml
?