-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Wildcard support in OCI Helm repositories does not work #12392
Comments
@Danielkem thank you for reporting this. is Harbour a cloud registry or something you run on premise? I will try to reproduce the problem, I just need to know how to set this up. I know OCI Helm wildcard works at least for AWS ECR and Azure Container Registry. |
Hey @alexef, |
We are facing somewhat similar issue with Gitlab OCI registry for helm charts. When we try to use
Looking at the code a bit it fails probably here and if we are not wrong, it is implemented considering AWS ECR API specification. Note that if we use a fixed version in |
@ankitabhopatkar13 does that work when you use the helm CLI? Gitlab has a huge disclaimer about its Helm support not being ready for production use... |
@blakepettersson can you please elaborate on what exactly do you mean with using helm CLI? We can do a
We can't do a |
@ankitabhopatkar13 something like
or
|
Yes, we could do -
and even
|
Same issue, when upgrading from 2.5.5 to 2.6.1 |
@blakepettersson Just to add more context: The only way we(cc: @jorianvo) could list all the tags at As per this
Then we generate a bearer token by running the following:
Then we use the token to list all the tags by running the following:
|
Maybe related issue, GHCR and ArgoCD 2.6.1,
But when specifying the correct version its working. |
@ankitabhopatkar13 that was indeed very helpful, thanks a lot! From what I can see in the code the |
Maybe related issue, GHCR and ArgoCD 2.6.1. I get a 404 trying using this snippet: chart: metacontroller-helm
repoURL: ghcr.io/metacontroller
targetRevision: v4.7.* and a chart: metacontroller/metacontroller-helm
repoURL: ghcr.io
targetRevision: v4.7.* Instead, pinning the |
do I understand correctly that for |
@detvdl / @blakepettersson after checking a bit https://github.com/oras-project/oras-go/blob/31c574b137ccfb3e8627e47f138c4a44b9efa8e5/registry/remote/auth/client.go#L156 and also remembering #11708, I don't see an easy way out of this mess. We need to replace my GetTags implementation with the oras-go one. that should handle various registries with various policies (and hopefully continue to support AWS ECR and Azure CR without issues). |
Yes, that is correct! |
#12554 should fix it |
Also getting the same with Google Artifact Registry
|
I'm seeing the same error message as @OpsMaya reported above, but with Azure CR and ArgoCD 2.6.7. To clarify, is it likely to be the same root cause as the other reports here (with the mention of json in the error message), or is it a separate issue? |
@Danielkem / @bennesp / @EladDolev / @ben741 appreciate if you can confirm the fix for Azure/GCR (now in master) |
Thanks @alexef, I'm all set up to test this on Azure, but it looks like the latest tag (v2.8.0+d4714f3) is still just before your commit with the fix, so I'm just waiting on that to see if the issue goes away. |
I tested with the new image (
|
After using oras-go directly, I figured out my issue: I've been using a repoURL like @alexef / @crenshaw-dev should I open a new issue for this? |
I met this same problem when work with Azure CR :
Is there anything update about this issue? |
@ben741 yes, this is a known long standing issue. If there's no other issue opened, please create one. @wardenlym just to clarify, even with latest master, you still get a 404? what is the registry/repoURL combination do you use? |
The combination I used before was:
After seeing your suggestion, I updated to latest master and changed form to:
and now it works fine. |
I use ArgoCD version 2.7.4 and there is still this issue with private GitHub container registry. Neither manipulation with chart name - repoUrl name helps. It is still the same error
My application configuration kind: Application
apiVersion: argoproj.io/v1alpha1
metadata:
name: example-helm
namespace: argocd
spec:
project: example
source:
chart: myorganization/example-helm
repoURL: ghcr.io
targetRevision: 0.2.* Is the fix released? What version of ArgoCD has the fix? |
@mchudinov, it's not yet released - it's due for 2.8. Try the latest master and see if the problem persists. |
Ah, forgot that. Closing again. 😆 |
Does work for me in 2.8 :/ |
@jlec what is your set up? which Helm repository are you using, how is it configured? You might be running into different issues than the root cause of this ticket. |
It's still doesn't work with the latest released version of ArgoCD (2.8.2) and Google Artifact Registry. It seems the credentials are not passed correctly when requesting the tag list and the api server returns a 403. |
I am using ghcr.io. For example
Asking ArgoCD to install
|
Checklist:
argocd version
.Describe the bug
I try to create an application from an OCI Helm repository with wildcard (*) as version instead of explicitly specifying the version of the chart which fails with the following error:
As seen here:
When I instead pin the version it does work as expected:
To Reproduce
The repository is Harbor:
Expected behavior
It should work as described in #10641
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: