Closed satyaj closed 5 years ago
oc policy add-role-to-user edit system:serviceaccount:openbanking-cicd:jenkins -n openbanking-api-dev
oc policy add-role-to-user edit system:serviceaccount:openbanking-cicd:jenkins -n openbanking-api-test
oc policy add-role-to-user edit system:serviceaccount:openbanking-cicd:jenkins -n openbanking-api-prod
oc policy add-role-to-user system:image-puller system:serviceaccount:openbanking-api-test:default -n openbanking-api-dev
oc policy add-role-to-user system:image-puller system:serviceaccount:openbanking-api-prod:default -n openbanking-api-dev
Working as expected. Closing
In order to support jenkins using Nexus, the following is needed:
oc policy add-role-to-user basic-user system:serviceaccount:openbanking-cicd:jenkins -n openbanking-nexus
Set up the permissions for "jenkins" service account in "openbanking-cicd" to have edit access to "openbanking-api-dev", "openbanking-api-test" and "openbanking-api-prod" namespaces.
Set up role system:image-puller to the default account in "openbanking-api-test" and "openbanking-api-prod" to the "openbanking-api-dev" namespace.