How to create a local custom role in OpenShift and apply it to a user within a namespace
Issue
-
Need to create a local custom role and apply it to a user within a namespace
-
After following Managing authorization policy creating a local role instructions for creating a local custom role while executing oadm policy add-role-to-user
this error is shown:-n
oadm policy add-role-to-user <role-name> <user> -n <namespace>
Error from server: role "<role-name>" not found
Environment
OpenShift 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
