-Aattempted to execute the following oadm command and received an error that parameter is not recognized. This is because the users name starts with - and it thinks it is a parameter rather than the name
$ oadm policy add-role-to-user cluster-admin -exampletest Error: unknown shorthand flag: 'e' in -exampletest
- Putting quotes around the name does not help.
- Red Hat OpenShift Container Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.