argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.04k stars 5.51k forks source link

Unable to deploy or add oci enable helm repository presented in Harbor's project(private/public) #18760

Open nehasikarwar01 opened 5 months ago

nehasikarwar01 commented 5 months ago

Two Issues faced with OCI enable Helm Chart in Argocd while adding and deploying (V2.8.2) 1)Unable to add Private repo which present in Harbor's private project using credentials. We are getting certificate error although this is trusted. ocihelm_whileaddingrepo 2)In Public project of Harbor we are able to add repo but not getting chart listed in Source section, passing Chart name and version manually getting error image

image

christianh814 commented 5 months ago

@nehasikarwar01 Did you add the certificate as described in the docs? https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories-using-self-signed-tls-certificates-or-are-signed-by-custom-ca

nehasikarwar01 commented 4 months ago

Thanks Christian, I am able to add Public Harbor repo through your suggestion, so my first point which is for Public repo is achieved but second point is still giving me tough time. I am not able to add Private repo and deploy application.

Public Repo challenge Point 2 Not able to add Private repo through Argocd GUI as well as through command line using below cmd

argocd repo add registry-rat.xyz.com --type helm --name reponame --enable-oci --username 'XYZ' --password 'XYZ ==> Failed

I am able to add Private repo through argocd command by passing Flag --insecure-skip-server-verification but App deployment failed using this repo with below error

argocd repo add registry-rat.xyz.com --type helm --name reponame --enable-oci --username 'XYZ' --password 'XYZ' --insecure-skip-server-verification

ERROR

Unable to create application: application spec for reponame is invalid: InvalidSpecError: repository not accessible: repositories not accessible: &Repository{Repo: "registry-rat.xyz.com", Type: "helm", Name: "oci", Project: ""}: repo client error while testing repository: rpc error: code = Unknown desc = error testing repository connectivity: helm registry login registry-rat.xyz.com --username ****** --password ****** --insecure failed exit status 1: WARNING: Using --password ** the CLI is insecure. Use --password-stdin. Error: Get " https://registry-rat.xyz.com/v2/": unauthorized: authentication required

nehasikarwar01 commented 4 months ago

Hi Team Any update

andrii-korotkov-verkada commented 2 weeks ago

ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and let us know if the issue is still present, please?