Skip to content

Commit 79c914c

Browse files
committed
USC: Allow managing UpdateStatuses
...through a ClusterRole / ClusterRoleBinding; UpdateStatus is cluster-scoped
1 parent 30b877f commit 79c914c

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

install/0000_00_update-status-controller_02_rbac-DevPreviewNoUpgrade.yaml

+8-16
Original file line numberDiff line numberDiff line change
@@ -60,32 +60,25 @@ rules:
6060
- get
6161
---
6262
apiVersion: rbac.authorization.k8s.io/v1
63-
kind: Role
63+
kind: ClusterRole
6464
metadata:
6565
name: update-status-controller
6666
namespace: openshift-update-status-controller
6767
annotations:
68-
kubernetes.io/description: Grant the update status controller permission to read and observe ConfigMaps, and modify the ConfigMap that serves as UpdateStatus API
68+
kubernetes.io/description: Grant the update status controller permission to manage UpdateStatuses
6969
include.release.openshift.io/self-managed-high-availability: "true"
7070
release.openshift.io/feature-set: DevPreviewNoUpgrade
7171
rules:
7272
- apiGroups:
73-
- ""
73+
- update.openshift.io
7474
resources:
75-
- configmaps
75+
- updatestatuses
7676
verbs:
7777
- get
7878
- list
7979
- watch
80-
- apiGroups:
81-
- ""
82-
resources:
83-
- configmaps
84-
resourceNames:
85-
- status-api-cm-prototype
86-
verbs:
80+
- create
8781
- patch
88-
- update
8982
---
9083
apiVersion: rbac.authorization.k8s.io/v1
9184
kind: ClusterRole
@@ -183,20 +176,19 @@ subjects:
183176
namespace: openshift-update-status-controller
184177
---
185178
apiVersion: rbac.authorization.k8s.io/v1
186-
kind: RoleBinding
179+
kind: ClusterRoleBinding
187180
metadata:
188181
name: update-status-controller-updatestatus-api-manager
189-
namespace: openshift-update-status-controller
190182
annotations:
191-
kubernetes.io/description: Grant the update status controller permission to manage the ConfigMap that serves as UpdateStatus API
183+
kubernetes.io/description: Grant the update status controller permission to manage UpdateStatus API
192184
include.release.openshift.io/self-managed-high-availability: "true"
193185
release.openshift.io/feature-set: DevPreviewNoUpgrade
194186
subjects:
195187
- kind: ServiceAccount
196188
name: update-status-controller
197189
namespace: openshift-update-status-controller
198190
roleRef:
199-
kind: Role
191+
kind: ClusterRole
200192
name: update-status-controller
201193
apiGroup: rbac.authorization.k8s.io
202194
---

0 commit comments

Comments
 (0)