-
Bug
-
Resolution: Done
-
Major
-
None
-
2.5 GA
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
$ oc create -f - <<EOF > apiVersion: apps.3scale.net/v1alpha1 > kind: APIManager > metadata: > name: ci-3scale-2.5 > spec: > productVersion: 2.5 > wildcardDomain: 3scale-ci-24.app.itix.fr > wildcardPolicy: Subdomain > resourceRequirementsEnabled: true > EOF The APIManager "ci-3scale-2.5" is invalid: []: Invalid value: map[string]interface {}{"metadata":map[string]interface {}{"selfLink":"", "clusterName":"", "name":"ci-3scale-2.5", "namespace":"ci-3scale-25", "creationTimestamp":"2019-05-20T08:07:30Z", "generation":1, "uid":"50742544-7ad6-11e9-b555-002590d83d80"}, "spec":map[string]interface {}{"productVersion":2.5, "resourceRequirementsEnabled":true, "wildcardDomain":"3scale-ci-24.app.itix.fr", "wildcardPolicy":"Subdomain"}, "apiVersion":"apps.3scale.net/v1alpha1", "kind":"APIManager"}: validation failure list: spec.productVersion in body must be of type string: "number"
The product version needs to be quoted:
apiVersion: apps.3scale.net/v1alpha1 kind: APIManager metadata: name: example-apimanager spec: productVersion: "2.5" wildcardDomain: <wildcardDomain> wildcardPolicy: <None|Subdomain> resourceRequirementsEnabled: true