Replies: 1 comment
-
found the solution, the value of password passed must be the token of the git-user not the raw password. I don't know why the argocd cli not taking raw password as password |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Argocd version - 2.0.0.
What I am trying:- Trying to add a git repo to argocd using argocd cli
Steps I performed using argocd cli
1> Logged into Argocd server app
argocd --insecure --grpc-web login argocd-server-url:443 --username argo-admin --password argo-pwd
'admin:login' logged in successfully
Context 'argocd-server-url:443' updated
2> adding repo to argocd
argocd repo add https://gitlab.com/my-repo/myapp.git --username git-user --password git-pwd
FATA[0001] rpc error: code = Unknown desc = authentication required
When I perform same step 2, from argocd web console, I see no error and the repo get added successfully.
Can anyone help please, Not sure where what is going wrong.
Thanks in Advance.
Ani.
Beta Was this translation helpful? Give feedback.
All reactions