Skip to Content
Skip Breadcrumb

There is now a description on the rhcloud how to create a custom role in openshift.

Custom Role Creation

tl;dr The required steps.

export

# oc export clusterrole edit > customrole.yaml
# vi customrole.yaml

edit

  • change name: edit_without_rsh
  • remove unwanted resources and verbs
  • save file

create

# oc create -f clusterrole.yaml
# oc adm policy add-role-to-user edit_without_rsh <username> -n <project>

You can contact me for any further questions and orders