File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ $ oc edit clusterrole admin
60
60
$ oc edit clusterrole edit
61
61
----
62
62
63
- . For each role, remove the line that corresponds to the resource of the strategy to disable.
63
+ . For each role, specify the subresources that correspond to the resource of the strategy to disable.
64
64
65
65
.. Disable the docker Build Strategy for *admin*:
66
66
+
@@ -70,12 +70,23 @@ kind: ClusterRole
70
70
metadata:
71
71
name: admin
72
72
...
73
- rules:
74
- - resources:
75
- - builds/custom
76
- - builds/docker <1>
73
+ - apiGroups:
74
+ - ""
75
+ - build.openshift.io
76
+ resources:
77
+ - buildconfigs
78
+ - buildconfigs/webhooks
79
+ - builds/custom <1>
77
80
- builds/source
78
- ...
81
+ verbs:
82
+ - create
83
+ - delete
84
+ - deletecollection
85
+ - get
86
+ - list
87
+ - patch
88
+ - update
89
+ - watch
79
90
...
80
91
----
81
- <1> Delete this line to disable docker builds globally for users with the *admin* role.
92
+ <1> Add `builds/custom` and `builds/source` to disable docker builds globally for users with the *admin* role.
You can’t perform that action at this time.
0 commit comments