Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-1502

Cannot use custom registry image with port number in Operator 2.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.2
    • 2.0.0
    • operator
    • None
    • 1

    Description

      In Operator 2.0, if the image is specified using a docker registry, such as:

      spec:
        image: localhost:5000/couchbase/server:6.5.0
      

      Then the image validation will reject it with this error:

      $ kubectl create -f couchbase-cluster.yaml
       
      secret/cb-example-auth created
      couchbasebucket.couchbase.com/default created
      The CouchbaseCluster "cb-example" is invalid: spec.image: Invalid value: "": spec.image in body should match '^[\w_\.\-/]+:([\w\d]+-)?\d+\.\d+.\d+(-[\w\d]+)?$'
      

      This seems to be a regression compared to Operator 1.2.x, when the image is specified similarly:

      spec:
        baseImage: localhost:5000/couchbase/server
        version: 6.5.0
      

      And the image validation accepts it:

      $ kubectl create -f couchbase-cluster.yaml 
      couchbasecluster.couchbase.com/cb-example created
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              simon.murray Simon Murray
              tin.tran Tin Tran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty