User without cluster-admin role cannot modify the Route's hostname

Solution Verified - Updated -

Issue

  • A user who doesn't have cluster-admin privileges cannot modify the Route's .spec.host value.
  • When trying to edit the Route's .spec.host, get the following error message:

    $ oc edit route <route-name>
    # routes.route.openshift.io "<route-name>" was not valid:
    # * spec.host: Invalid value: "<hostname>": field is immutable
    
    error: routes.route.openshift.io "route-name" is invalid
    A copy of your changes has been stored to "/tmp/oc-edit-xxx.yaml"
    error: Edit cancelled, no valid changes were saved.
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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