Document URL: https://docs.openshift.com/container-platform/4.1/builds/understanding-buildconfigs.html Section Number and Name: Describe the issue: The sample build configuration does not work. Creating a build config based on this example yields the following error: oc create -f bc.yaml error: unable to recognize "bc.yaml": no matches for /, Kind=BuildConfig Changing the apiVersion property to : apiVersion: build.openshift.io/v1 resolves the issue. Suggestions for improvement: Additional information:
I opened the following PR to correct the example: https://github.com/openshift/openshift-docs/pull/14645 Thanks!
@Brandi I met error info: [wewang@Desktop ~]$ oc create -f bc.json error: unable to recognize "bc.json": no matches for kind "build.openshift.io/v1" in version "v1" [wewang@Desktop ~]$ oc version Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0", GitCommit:"08bfd1b59", GitTreeState:"clean", BuildDate:"2019-05-05T21:09:19Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+9fe6f2c", GitCommit:"9fe6f2c", GitTreeState:"clean", BuildDate:"2019-05-05T05:28:43Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Thanks so much! I updated the PR (https://github.com/openshift/openshift-docs/pull/14645).
Verified it, pr can be merged now Version: $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.1.0-0.nightly-2019-05-07-201043 True False
Thanks! PR merged.