-
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
Unable to update Helm chart dependencies if there is any Helm OCI repository configured #5856
Comments
I've just run into the same issue. Indeed OCI Helm repositories do not support This may be the source of the issue: Line 70 in 6cc8ab0
argo-cd/reposerver/repository/repository.go Line 494 in 6cc8ab0
argo-cd/reposerver/repository/repository.go Line 613 in 6cc8ab0
|
fix: Use helm login for Oci helm repos. argoproj#5856 (argoproj#5887) Signed-off-by: Austin Smart <austin@austinsmart.com>
Thanks @AustinSmart for fixing this. I installed |
fix: Use helm login for Oci helm repos. argoproj#5856 (argoproj#5887) Signed-off-by: Austin Smart <austin@austinsmart.com>
I'm facing a similar issue with argocd v2.1-rc3 (however when using OCI charts as dependencies)
argocd version:
|
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
Argo CD fails to update Helm chart dependencies if there is any Helm OCI repository configured in the system.
This OCI repository may not be even used, it just needs to be added to Argo CD to cause the issue.
It looks like Argo CD is trying to execute
helm repo add ...
command for every registered Helm repository before runninghelm dependency update
. If there is Helm OCI repository registered in Argo CD,helm repo add ...
fails for such OCI repo.time="2021-03-24T15:19:21-04:00" level=fatal msg="rpc error: code = InvalidArgument desc = application spec is invalid: InvalidSpecError: Unable to generate manifests in application-chart: rpc error: code = Unknown desc = ``helm repo add --username ****** --password ****** test-helm-oci-repo myregistry.azurecr.io/helm`` failed exit status 1: Error: could not find protocol handler for:
As far as I understand
helm repo add ...
doesn't work with Helm OCI repos, so probably Helm OCI repos should be excluded fromhelm repo add ...
step.To Reproduce
Please refer to the sample project: https://github.com/lsolovey/argocd-helm-oci
argocd repo add myregistry.azurecr.io/helm --type helm --name test-helm-oci-repo --enable-oci --username <username> --password <password>
argocd app create sample-app --dest-namespace argocd --dest-server https://kubernetes.default.svc --repo https://github.com/lsolovey/argocd-helm-oci.git --path application-chart --sync-policy auto
Application creation fails with the error mentioned above.
Expected behavior
Application should be created successfully.
Version
The text was updated successfully, but these errors were encountered: