Helm spray doesn't support OCI
madwhoo opened this issue ยท 12 comments
Hello,
it's more of a question than an issue, but I ran into the problem with Helm Spray not finding the Umbrella Chart when trying to access our self-hosted registry via OCI url. So the question, will the OCI standard with registry usage still come in the future or will it still only be possible with repo and http/https?
Hello,
OCI is actually not supported, but I don't think it would be complicated to do it as we are in fact just running a helm fetch
command to get the umbrella chart if its kind is an URL (starting with http/https).
I see helm fetch/pull supports oci as protocol in the URL so I may update the code to include this case, but unfortunately, I won't be able to test it as we are not using OCI in our own development environment.
Hey @cvila84 thanks for the reply and sounds already good if it is not complicated to integrate. If you have something ready to run, I'd be happy to test it in our development environment, as we have everything setup for OCI.
I need to issue a new release anyway soon because of dependabot :)
@madwhoo Can you please try this release ?
Looked good in the first attempt:
Error: --version flag is explicitly required for OCI registries
helm.go:88: [debug] --version flag is explicitly required for OCI registries
added --version flag and unfortunately:
Error: cannot use --version together with chart URL
Here we go again : the good one
So i checked again, now it works as with http/https.
But now i am back at the point where it claims not finding something:
[spray] starting spray with flags: &{ChartName:time="2022-06-29T16:20:50+02:00" level=debug msg=resolving host="docker-intern:443" ChartVersion:0.21.31-pre-release-1 Targets:[alarm-svc] Excludes:[] Namespace:default CreateNamespace:false PrefixReleases: PrefixReleasesWithNamespace:false ResetValues:false ReuseValues:false ValuesOpts:{ValueFiles:[values-intern.yaml] StringValues:[] Values:[] FileValues:[]} Force:false Timeout:300 DryRun:false Verbose:true Debug:true deployments:[] statefulSets:[] jobs:[]}
Error: loading chart "time="2022-06-29T16:20:50+02:00" level=debug msg=resolving host="docker-intern:443"": stat time="2022-06-29T16:20:50+02:00" level=debug msg=resolving host="docker-intern:443": no such file or directory
Error: plugin "spray" exited with error
helm.go:88: [debug] plugin "spray" exited with error
but when i use helm fetch the tar file gets downloaded. Don't know if the registry is used differently then the repository, since we directly started using registry
Hello, it's not clear to me how you launch spray. It should be done the same way as for fetch command
helm fetch oci://<registry>/<repository>/<artifact> --version <version>
Hey, yes i use the exact same reference as for fetch
helm spray oci://docker-intern:443/helm-charts/nms3 --target="alarm-svc" --version 0.21.31-pre-release-1 --debug
so it should be able to get the tar file or does spray expect something else too?
Ok. So I need to do some test against a real OCI helm registry. I will try to set that up in a couple of days, I will come back to you ASAP