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

Helm push to cm:// is broken in version 8.1

Open gezb opened this issue 6 years ago • 5 comments

With helm push version 8.1 pushing to repositories protected using chartmueum/auth JWT using the cm:// protocol (where the intention is the bearer token should be picked up from the HELM_REPO_ACCESS_TOKEN environment variable) is broken

helm push <my chart>.tgz <my-repo>
Error: could not find protocol handler for: cm
Error: plugin "push" exited with error```

gezb avatar Dec 17 '19 15:12 gezb

@gezb thanks for opening. can you please share your helm version?

jdolitsky avatar Dec 18 '19 00:12 jdolitsky

We are currently running helm version 2.15.1

gezb avatar Dec 18 '19 09:12 gezb

We're seeing this with helm v2.16.1 and helm push v0.8.1

jgazeleyfr avatar Dec 20 '19 09:12 jgazeleyfr

And we found the same issue with helm push v0.8.0. Had to revert to v0.7.1 to get it working again

jgazeleyfr avatar Dec 20 '19 11:12 jgazeleyfr

Helm v2 uses HELM_PLUGIN as plugin directory environment(https://github.com/helm/helm/blob/release-2.14/pkg/plugin/plugin.go#L181), while Helm v3 uses HELM_PLUGINS(https://github.com/helm/helm/blob/release-3.0/pkg/cli/environment.go#L66). This is causing https://github.com/chartmuseum/helm-push/blob/master/pkg/helm/repo.go#L35 cannot find plugins since no plugin is registered.

xh4n3 avatar Jan 14 '20 03:01 xh4n3