User without cluster-admin role cannot modify the Route's hostname
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.