chartmuseum / helm-push

Helm plugin to push chart package to ChartMuseum
Apache License 2.0
670 stars 170 forks source link

Unable to install plugin from .tar.gz #210

Open verdverm opened 9 months ago

verdverm commented 9 months ago
$ helm install plugin helm-push_0.10.4_linux_amd64.tar.gz
Error: INSTALLATION FAILED: chart illegally contains content outside the base directory: "LICENSE"

helm v3.10.1, though it seems to be the case for some time (https://github.com/helm/helm/pull/5610)

$ tree (of unpacked content)
.
├── LICENSE
├── bin
│   └── helm-cm-push
└── plugin.yaml
verdverm commented 9 months ago

after realizing my typo (reversing install & plugin), I'm seeing a different error

$ helm plugin install ./helm-push_0.10.4_linux_amd64.tar.gz
Error: plugin metadata (plugin.yaml) missing

If I manually unpack the tar into the correct location, it works

mkdir -p $HELM_PLUGIN_DIR/helm-push
tar -xf helm-push_0.10.4_linux_amd64.tar.gz -C $HELM_PLUGIN_DIR/helm-push