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
- duplicates
-
K8S-1503 Image Pattern validation should allow for Red Hat Digests
- Closed