Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-2218

Cannot specify a registry with port for S2i and runtime build images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 0.11.0
    • 0.10.0
    • Operator
    • None
    • Hide
      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoApp
      metadata:   name: example-quarkus
      spec:   build:     gitSource:       contextDir: process-quarkus-example
            uri: 'https://github.com/kiegroup/kogito-examples'
          imageRuntimeTag: image-registry.openshift-image-registry.svc:5000/openshift/kogito-quarkus-jvm-ubi8-nightly:temp-master-tests
      
      Show
      apiVersion: app.kiegroup.org/v 1 alpha 1 kind: KogitoApp metadata: name: example-quarkus spec: build: gitSource: contextDir: process-quarkus-example uri: 'https://github.com/kiegroup/kogito-examples' imageRuntimeTag: image-registry.openshift-image-registry.svc: 5000 /openshift/kogito-quarkus-jvm-ubi 8 -nightly:temp-master-tests
    • 2020 Week 19-21 (from May 4), 2020 Week 22-24 (from May 25)

      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\.-]+))
      

            tradisso@redhat.com Tristan Radisson
            tradisso@redhat.com Tristan Radisson
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: