-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.16
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In a normal OCP cluster 4.16
when
$ oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge
It will add the route and in ImageStream, I can see publicDockerImageRepository is added, something like the below
oc -n openshift get imagestream tests -o yaml | grep -A2 status
status:
dockerImageRepository: image-registry.openshift-image-registry.svc:5000/openshift/tests
publicDockerImageRepository: default-route-openshift-image-registry.apps.abdotest11.lab.upshift.rdu2.redhat.com/openshift/tests
For REF:
1-
2.6. Enable the Image Registry default route with the Custom Resource Definition
REF1
2-
and for publicDockerImageRepository
REF2
> publicDockerImageRepository string PublicDockerImageRepository represents the public location from where the image can be pulled outside the cluster. This field may be empty if the administrator has not exposed the integrated registry externally.
But for ROSA HCP
It only add the route, but it didn't add the status.publicDockerImageRepository to the imagesteam
How to test
1- Enable the Image Registry default route with the Custom Resource Definition
oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge
2- You should find the route added
oc get routes -n openshift-image-registry -n openshift-image-registry NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD default-route default-route-openshift-image-registry.apps.rosa.aalatwdy02-hcp.u11k.s3.devshift.org image-registry <all> reencrypt None
3- parameter status.publicDockerImageRepository is not added to the imagestream
oc -n openshift get imagestream tests -o yaml | grep -A2 status status: dockerImageRepository: image-registry.openshift-image-registry.svc:5000/openshift/tests tags: