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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content