Skip to content

Commit

Permalink
docs: expanding the description of repo credendials (argoproj#3938)
Browse files Browse the repository at this point in the history
Signed-off-by: danmx <[email protected]>
  • Loading branch information
danmx authored Jul 17, 2020
1 parent fec4dc7 commit 9ef40f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/operator-manual/declarative-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,13 @@ data:
usernameSecret:
name: my-secret
key: username
- url: [email protected]:argoproj-labs
sshPrivateKeySecret:
name: my-secret
key: sshPrivateKey
```

Argo CD will only use the credentials if you omit `usernameSecret`, `passwordSecret`, and `sshPrivateKeySecret` fields (`insecureIgnoreHostKey` is ignored).
Argo CD will only use the credentials if you omit `usernameSecret`, `passwordSecret`, and `sshPrivateKeySecret` fields (`insecureIgnoreHostKey` is ignored) or if your repository is not listed in `repositories`.

A credential may be match if it's URL is the prefix of the repository's URL. The means that credentials may match, e.g in the above example both [https://github.com/argoproj](https://github.com/argoproj) and [https://github.com](https://github.com) would match. Argo CD selects the first one that matches.

Expand Down

0 comments on commit 9ef40f4

Please sign in to comment.