Argo-cd: Where can I setup the private repo's credential when using 'Declarative Setup' ?

Created on 14 Aug 2020  路  2Comments  路  Source: argoproj/argo-cd

Hi,
If I don't want to expose my username and password to the url of a git repo, how can I set them when using 'Declarative Setup'?
I've read the doc of https://argoproj.github.io/argo-cd/operator-manual/application.yaml, but can't find any hint.

Firstly, I fork the example git repo to my private gitlab repo host.

Then I setup a private repo using the web-ui.

If I use web-ui, the username and password was set in the 'init repo ui', and one cann't see the credential of the repo anymore after I setting it.
image
After setting the repo in web-ui, I try to get any hit from the yaml file, but still can't find one.

kubectl describe application guestbook -n=argocd

So what's the equivalent way of 'Declarative Setup'?
Thanks in advance.

bug

All 2 comments

I believe that you are looking for the repositories section of the argocd-cm.yaml

The username and password are then stored as Kubernetes secrets and referenced as shown in argocd-cm.yaml

@LelandSindt
Thank you very much. Exactly what I'm looking for.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chiragthaker picture chiragthaker  路  3Comments

clintberry picture clintberry  路  3Comments

duboisf picture duboisf  路  3Comments

everesio picture everesio  路  3Comments

alexec picture alexec  路  3Comments