helm: Can't push a chart to registry
I’m trying tu push a chart to registry, but i’m getting this error:
helm push cacheserver-core-chart-3.16.0.tgz https://.../sre --debug
Error: scheme prefix missing from remote (e.g. "oci://")
helm.go:84: [debug] scheme prefix missing from remote (e.g. "oci://")
helm.sh/helm/v3/pkg/uploader.(*ChartUploader).UploadTo
helm.sh/helm/v3/pkg/uploader/chart_uploader.go:49
helm.sh/helm/v3/pkg/action.(*Push).Run
helm.sh/helm/v3/pkg/action/push.go:69
main.newPushCmd.func1
helm.sh/helm/v3/cmd/helm/push.go:48
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.3.0/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.3.0/command.go:974
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.3.0/command.go:902
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:255
runtime.goexit
runtime/asm_amd64.s:1581
Output of helm version
: version.BuildInfo{Version:“v3.8.0”, GitCommit:“d14138609b01886f544b2025f5000351c9eb092e”, GitTreeState:“clean”, GoVersion:“go1.17.5”}
If i try to use http:// or https:// scheme, then i get error like:
Error: scheme "https" not supported
If i use repo name, then i get oci error:
#helm repo list
NAME URL
sre https://..../sre
#helm push cacheserver-core-chart-3.16.0.tgz sre --debug
Error: scheme prefix missing from remote (e.g. "oci://")
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 15 (4 by maintainers)
helm push command is not working instead of that, I used “cm-push”
Install the Plugin:
$ helm plugin install https://github.com/chartmuseum/helm-push
Push a chart to your favorite repository,
$ helm cm-push ./myhelm-chart helmchartmuseum
Ref: https://github.com/chartmuseum/helm-push
Thanks!
Same issue with helm 3.10.0
Not sure if it’s related, but I can’t get cm-push to work either:
I had the same problem after upgrading to helm 3.10.2 and it seems the ChartMuseum plugin in it’s recent version (installed as
helm plugin install https://github.com/chartmuseum/helm-push
) is needed and thenhelm cm-push ...
is the command. In Gitlab-CI this looks like so: