-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the OCI Helm Repository is impossible #1643
Comments
Currently investigating if our |
It is possible. We use it internally. There may well be issues with the documentation, so I will work look through the docs to see what errors I can fix. Or I'm also always happy to accept PRs. If you read the helm documentation for OCI hosted charts, you'll note that I can't comment on whether or not flux works with OCI hosted charts, since I'm not currently using flux. |
(I'm on vacation today, so won't get the chance to look at this properly until tomorrow. However, here's a snippet of how we use the OCI chart in our helm command that may be helpful)
|
Thanks for the quick reply @garypen - no need to respond on your vacation though! Unfortunately, manually helm installs are a no-go for us, our clusters are fully automated with flux. Just wanted to drop an update that it looks like updating flux (to Error message in flux, seems like it could be a registry permission issue:
|
That's an odd error. There's no requirement to authorise to pull that helm chart. You can confirm this by running:
manually. That should just succeed and deliver |
fixes: #1643 The helm chart never used to have a registry, so our docs were really just placeholders. I've updated them to reflect the fact that we now store the chart in our OCI registry.
I've raised a PR (#1649) to fix the documentation generation for the repo section of the helm chart docs. The next time we do a release the helm docs (README.md) will be correct. With that fix in place, I think the issues remaining here are |
@hobbsh I have the same exact error did you find a workaround ? |
@hobbsh just in case you still have this issue: fluxcd/flux2#3438 This will fix it:
|
I ran into the same issue with helm on the desktop. It appears that you can't download GHCR OCI repositories without being logged into Github first in docker. To fix, you can do something like this: # Fails
➜ ~ helm pull oci://ghcr.io/apollographql/helm-charts/router --version 0.1.21
Error: failed to authorize: failed to fetch oauth token: unexpected status: 403 Forbidden
# Login to Github
➜ ~ echo $GITHUB_TOKEN | docker login ghcr.io -u <Your Username> --password-stdin
Login Succeeded
# Now Works
➜ ~ helm pull oci://ghcr.io/apollographql/helm-charts/router --version 0.1.21
Pulled: ghcr.io/apollographql/helm-charts/router:0.1.21
Digest: sha256:cd4055ad5f6530136f10cccbc6d4f3596fa632e55ca3efcdddfc64367db69c1a @garypen I'm not sure if this is a known issue, but it would be good to get this in the standard documentation 👍 |
I'm fairly sure you don't need to have docker logged in to ghcr.io. I use the chart in many environments where I'm not logged in to docker. To be sure I tested as follows:
I don't know why it failed for you, could there be something unusual about your environment? Perhaps you can try my test from a different environment and see what happens for you? |
Very strange. Previously it was not working for me on either device (PopOS using Podman + Helm, and ARM Mac using Docker + Helm) until I had logged into the registry. Now it's working perfectly fine after logging out of both, on both. 🤷 The gremlins are at it again... Sorry for the misguidance. |
I'm seeing this again unfortunately... Is returning 403 for me. |
I have the same issue with Ansible as the OP has with Flux, using Ansible's |
Describe the solution you'd like
There was recently a change to use an OCI Helm Repository, however it does not work. The documented way of using it also results in a failure. It seems like at the very least, documentation needs to be updated.
Helm install locally according to the documentation (looks like the version is just incorrect):
Trying to add the repository manually locally:
Using an
oci
typeHelmRepository
with flux:Describe alternatives you've considered
It looks like tags are not being used on the repository itself anymore so it's even more painful to pin releases that way, despite the fact that this was not a great solution to begin with.
Additional context
Additionally, the README in the chart itself is out of date and that is where the instructions should be updated, not here, in my opinion.
Local helm version:
The text was updated successfully, but these errors were encountered: