Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (13 loc) · 1.04 KB

ProjectPolicySetup.md

File metadata and controls

16 lines (13 loc) · 1.04 KB
title description
Configure Access Controls for Jenkins
Configure the access controls to allow the Jenkins instance to tag imagestreams in the environment projects, and to allow the environment projects to pull images from the tools project

Configure the access controls to allow the Jenkins instance to tag imagestreams in the environment projects, and to allow the environment projects to pull images from the tools project

oc policy add-role-to-user system:image-puller system:serviceaccount:<project>-dev:default -n <project>-tools
oc policy add-role-to-user edit system:serviceaccount:<project>-tools:default -n <project>-dev

oc policy add-role-to-user system:image-puller system:serviceaccount:<project>-test:default -n <project>-tools
oc policy add-role-to-user edit system:serviceaccount:<project>-tools:default -n <project>-test

oc policy add-role-to-user system:image-puller system:serviceaccount:<project>-prod:default -n <project>-tools
oc policy add-role-to-user edit system:serviceaccount:<project>-tools:default -n <project>-prod