Bug 1704843 - [DOCS] BuildConfig sample does not work
Summary: [DOCS] BuildConfig sample does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.1.0
Assignee: Brandi Munilla
QA Contact: wewang
Vikram Goyal
URL: https://docs.openshift.com/container-...
Whiteboard: 4.0_Readiness_Feedback
Depends On:
Blocks: 1664187
TreeView+ depends on / blocked
 
Reported: 2019-04-30 15:57 UTC by rvanderp
Modified: 2019-05-10 15:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-10 15:02:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description rvanderp 2019-04-30 15:57:08 UTC
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:

Comment 1 Brandi Munilla 2019-05-01 19:43:02 UTC
I opened the following PR to correct the example:

https://github.com/openshift/openshift-docs/pull/14645

Thanks!

Comment 2 wewang 2019-05-06 11:04:05 UTC
@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"}

Comment 4 Brandi Munilla 2019-05-08 14:39:21 UTC
Thanks so much! I updated the PR (https://github.com/openshift/openshift-docs/pull/14645).

Comment 5 wewang 2019-05-09 01:58:13 UTC
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

Comment 6 Brandi Munilla 2019-05-10 15:02:58 UTC
Thanks! PR merged.


Note You need to log in before you can comment on or make changes to this bug.