-
Bug
-
Resolution: Done
-
Critical
-
0.10.0
-
None
When trying to set an image with a registry containing a port, like for example:
image-registry.openshift-image-registry.svc:5000/openshift/kogito-quarkus-jvm-ubi8-nightly:temp-master-tests
the Operator will refuse this image (via CR or CLI) as S2i or Runtime image as it is not validating the defined validation pattern:
(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/([a-z0-9-]+)/([a-z0-9-]+):(([a-z0-9\.-]+))
That regex does not include the support of registry port.
The regex should be:
(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9](?::[0-9]{0,5})?/([a-z0-9-]+)/([a-z0-9-]+):(([a-z0-9\.-]+))