Description of problem: When updating route objects the host attribute is immutable and causes any edits to fail. Version-Release number of selected component (if applicable): oc v3.5.0.32-1+4f84c83 kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://internal.api.cicd.openshift.com:443 openshift v3.5.0.32-1+4f84c83 kubernetes v1.5.2+43a9be4 How reproducible: This is the standard behavior. Steps to Reproduce: 1. oc edit route docker-registry 2. Modify the 'host:' attribute. 3. Verify the error. Actual results: # routes "docker-registry" was not valid: # * spec.host: Invalid value: "docker-registry.router.default.svc.cluster.local": field is immutable Expected results: I would expect that the host field would be like any other attribute and be editable. Additional info: I can get the desired behavior by doing the following: oc get route docker-registry -o yaml > route # modify route and set host to something different oc delete route docker-registry oc create -f route This seems unnecessary and could cause a larger outage window than desired if I want to keep the same name of the route but update the host attribute.
It's immutable for security reasons. If you can change hostname, you can steal other people's host names. We may relax this in the future, but not anytime soon.