Description of problem: after we removed route specification from operator config, the console-custom route still exists in openshift-console, it is not removed Version-Release number of selected component (if applicable): 4.5.0-0.nightly-2020-04-21-103613 How reproducible: Always Steps to Reproduce: 1. add custom route URL and secret reference in operator config $ oc create secret tls custom-tls-secret --cert ./tls.crt --key ./tls.key -n openshift-config $ oc get console.operator cluster -o json | jq '.spec' { "managementState": "Managed", "route": { "hostname": "", "secret": { "name": "custom-tls-secret" } } } 2. A new console-custom route will be created after we add correct settings 3. remove route specification from operator config # oc get console.operator cluster -o json | jq '.spec' { "managementState": "Managed" } # oc get route -n openshift-console NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD console console-openshift-console.apps.qe-yapeius0421.qe.devcluster.openshift.com console https reencrypt/Redirect None console-custom qe-yapei-custom-console.com console https reencrypt/Redirect None downloads downloads-openshift-console.apps.qe-yapeius0421.qe.devcluster.openshift.com downloads http edge/Redirect None Actual results: 3. the console-custom route still exists in openshift-console project Expected results: 3. since we have removed route specification configuration from operator config, so the custom-console route should be delete too. From PR https://github.com/openshift/console-operator/pull/402/files, it looks like the route can only be deleted when spec.managementState is set to Removed Additional info:
If we defined new route, the console-custom will has use host but if we didn't set new customized route, the route will be always there, it looks a little wired
*** This bug has been marked as a duplicate of bug 1826628 ***