Bug 1330839

Summary: Need update doc about the way to disable build strategy like docker, custom strategy
Product: OKD Reporter: Xingxing Xia <xxia>
Component: DocumentationAssignee: Vikram Goyal <vigoyal>
Status: CLOSED CURRENTRELEASE QA Contact: Bilhar <baulakh>
Severity: low Docs Contact: Vikram Goyal <vigoyal>
Priority: medium    
Version: 3.xCC: aos-bugs, cewong, haowang, jliggitt, mmccomas
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 13:55:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xingxing Xia 2016-04-27 06:31:09 UTC
Description of problem:
According to document https://docs.openshift.org/latest/admin_guide/securing_builds.html#disabling-a-build-strategy-globally , we can disable build strategy like docker, custom by removing '- builds/docker' and '- builds/custom' and keeping '- builds/source'. But `oc edit clusterrole admin edit` does not show these items:
  - builds/custom
  - builds/docker 
  - builds/source

Version-Release number of selected component (if applicable):
openshift v1.3.0-alpha.0-56-gd9c6483
kubernetes v1.3.0-alpha.1-331-g0522e63
etcd 2.3.0

How reproducible:
Always

Steps to Reproduce:
1. Via cluster-admin, run:
$ oc edit clusterrole admin
$ oc edit clusterrole edit


Actual results:
1. Inconsistent with the document. oc edit only shows:
  - builds
  - builds/clone
  - builds/log

Not show:
  - builds/custom
  - builds/docker 
  - builds/source

Expected results:
1. No matter about function change or document update, the result from oc edit and the document should be consistent.

Additional info:
In step 1, if add:
  - builds/source
But not add:
  - builds/custom
  - builds/docker
Then save edit, regular user still can create build of docker strategy.

Comment 4 Xingxing Xia 2016-04-27 07:38:21 UTC
Sorry, according to https://github.com/openshift/origin/pull/8528 (which is not yet merged in v3.2.0.17), the problem is not a function bug.
I'd like to convert it to Document bug to track updating the document.

Comment 5 Jordan Liggitt 2016-04-27 13:56:44 UTC
Docs in https://github.com/openshift/openshift-docs/pull/1909