This should not be qa, moving back, since https://github.com/openshift/openshift-apiserver/pull/57 is still open.
Prepare OAS resources that don't have fields like "status": cat route-test.yaml apiVersion: route.openshift.io/v1 kind: Route metadata: name: my spec: port: targetPort: 8080 to: kind: Service name: my cat bc-test.yaml apiVersion: build.openshift.io/v1 kind: BuildConfig metadata: labels: app: ruby-ex name: ruby-ex spec: output: to: kind: ImageStreamTag name: ruby-ex:latest source: git: uri: https://github.com/sclorg/ruby-ex.git type: Git strategy: sourceStrategy: from: kind: ImageStreamTag name: ruby-25-centos7:latest type: Source In old 4.3.0-0.nightly-2019-12-10-235659 env, try --validate: oc create -f route-test.yaml --validate error: error validating "route-test.yaml": error validating data: [ValidationError(Route.spec.to): missing required field "weight" in com.github.openshift.api.route.v1.RouteTargetReference, ValidationError(Route.spec): missing required field "host" in com.github.openshift.api.route.v1.RouteSpec, ValidationError(Route): missing required field "status" in com.github.openshift.api.route.v1.Route]; if you choose to ignore these errors, turn validation off with --validate=false oc create -f bc-test.yaml --validate error: error validating "bc-dc-is.yaml": error validating data: [ValidationError(BuildConfig.spec): missing required field "nodeSelector" in com.github.openshift.api.build.v1.BuildConfigSpec, ValidationError(BuildConfig): missing required field "status" in com.github.openshift.api.build.v1.BuildConfig]; if you choose to ignore these errors, turn validation off with --validate=false In 4.3.0-0.nightly-2019-12-12-215723 env, try again, they can succeed.
However, in latest 4.3.0-0.nightly-2019-12-12-215723 env, imagestream with no "spec" still fails if --validate is used: cat is-test.yaml kind: List metadata: {} apiVersion: v1 items: - apiVersion: image.openshift.io/v1 kind: ImageStream metadata: labels: app: ruby-ex name: ruby-25-centos7 spec: tags: - from: kind: DockerImage name: centos/ruby-25-centos7 name: latest - apiVersion: image.openshift.io/v1 kind: ImageStream metadata: labels: app: ruby-ex name: ruby-ex oc create -f is-test.yaml --validate error: error validating "is-test.yaml": error validating data: ValidationError(ImageStream): missing required field "spec" in com.github.openshift.api.image.v1.ImageStream; if you choose to ignore these errors, turn validation off with --validate=false Seems https://github.com/openshift/api/pull/539/files does not include imagestream.
https://github.com/openshift/api/pull/543 will fix in in master, I'll open 4.3 picks soon after.
Verified in 4.3.0-0.nightly-2019-12-13-180405 with above steps.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0062
*** Bug 1811694 has been marked as a duplicate of this bug. ***