-
Bug
-
Resolution: Done
-
Normal
-
4.12.0
-
None
-
Moderate
-
None
-
uShift Sprint 228, uShift Sprint 229, uShift Sprint 230
-
3
-
False
-
Description of problem:
In router-default deployment the ROUTER_CANONICAL_HOSTNAME is defined as "router-default.apps.cluster.local" but the generated route looks like: <route-name>-<namespace>.cluster.local and it doesn't contain the "apps" in the sub domain.
Version-Release number of selected component (if applicable):
Client Version: 4.12.0-202211081039.p0.g854f807.assembly.stream-854f807 Kustomize Version: v4.5.7 Kubernetes Version: v1.25.0 microshift-4.12.0~rc.3-202212061817.p0.gcb7f9bb
How reproducible:
100%
Steps to Reproduce:
1. create service 2. create a route without specifying the spec.host 3. oc get route myroute -oyaml
Actual results:
status: ingress: - conditions: - lastTransitionTime: "2022-12-07T09:03:52Z" status: "True" type: Admitted host: myroute-default.cluster.local <<<---no apps routerCanonicalHostname: router-default.apps.cluster.local <<<--- routerName: default wildcardPolicy: None
Expected results:
both host and routerCanonicalHostname should use same base domain
Additional info:
One example of OCP cluster: status: ingress: - conditions: - lastTransitionTime: "2022-12-07T08:25:05Z" status: "True" type: Admitted host: service-unsecure-hongli.apps.hongli-azure.qe.azure.devcluster.openshift.com routerCanonicalHostname: router-default.apps.hongli-azure.qe.azure.devcluster.openshift.com routerName: default wildcardPolicy: None