Unable to Run OpenShift Commands Due to User Name Starting with a Dash

Solution In Progress - Updated -

Issue

-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.

Environment

  • Red Hat OpenShift Container Platform
    • 3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In