- Binding the
nexus-sonatype-nexus
Service Account to the Role view to be able to read ConfigMaps when creating the nexus repos
oc adm policy add-role-to-user view -z nexus-sonatype-nexus
- Create ArgoCD token in UI or on CMD Line. Update config map to give
apiKey
capability to the admin account. Then generate token (ui or cli). Usebasic-auth
secret type withusername: token
andpassword: aaa.bbb.ccc
as Jenkins will give you a JSON object if you just useopaque
. This way you get the varsARGOCD_CREDS_PSW
and you're away. Note ArgoCD Admin passwd is now stored in a secret called
$ oc edit cm argocd-cm
data:
accounts.admin: apiKey
$ argocd account generate-token --account admin
-
dummy-sa
should becomejenkins
😉 -
Generate GITHUB personal access token or whatever to be able to push git updates as part of jenkins workflow