-
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
ArgoCD fails to deploy Helm charts from a GitHub OCI registry using pre-release version wildcards #16394
Comments
I am encountering a similar issue related to the usage of wildcard versions in Helm charts. Specifically, when setting the
Upon switching the repository to Public, the pull operation works seamlessly, and the application retrieves the latest OCI Helm image. Furthermore, when specifying an exact version such as |
+1 With GAR and pre-release tags feature. Does not matter how/what type of authentication was added for private repo I can point to root cause in Oras-go library: it does not support repos with path part Example
Some findingsCode flow for helm OCI repos with pre-release: Line 403 in b12630c
It uses Oras-go library and do such initialization with Lines 431 to 438 in b12630c
Tag list fetched with Oras library in 2 stages:
Problem here: Oras try to prepare an Authorization token for host part of repository URL, but credentials are saved against full URL and get EmptyCredentials instead of provided on initial state: https://github.com/oras-project/oras-go/blob/main/registry/remote/auth/client.go#L180
As a possible solution from Argo-CD side: Use host part during oras initialization instead of full repoURL. |
Hey @gris-gris and @aarozhkov! The authentication issue should be fixed now, could you test it please? I've tested it locally and it seems to be working as expected now! |
I can confirm that resolving pre-release version ranges in 2.10.4 now works as expected. Thanks! |
Hi @gilles-gosuin I am getting same issue in argocd v2.11.3 for GAR |
Checklist:
argocd version
.Describe the bug
ArgoCD fails to deploy Helm charts from a GitHub OCI registry using pre-release version wildcards.
To Reproduce
1.0.0-beta.2
>=1.0.0-0
,^1.0.0-0
and^1.x.x-0
; weirdly enough, all fail with an authentication error:Expected behavior
I'm expecting that it works as well as when I do a
helm pull
(which works fine):Version
The text was updated successfully, but these errors were encountered: