Skip to content

Commit 4bc4002

Browse files
committed
chore: Keep rbac.authorization.k8s.io rules together
1 parent 9b46b57 commit 4bc4002

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

deploy/helm/druid-operator/templates/roles.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ rules:
6969
- get
7070
- list
7171
- patch
72+
# Required to bind the product ClusterRole to the per-cluster ServiceAccount.
73+
- apiGroups:
74+
- rbac.authorization.k8s.io
75+
resources:
76+
- clusterroles
77+
verbs:
78+
- bind
79+
resourceNames:
80+
- {{ include "operator.name" . }}-clusterrole
7281
# StatefulSet created per role group. Applied via SSA, tracked for orphan cleanup, and
7382
# owned by the controller (.owns()), so watch is also required.
7483
- apiGroups:
@@ -167,16 +176,6 @@ rules:
167176
- get
168177
- list
169178
- watch
170-
# Required to bind the product ClusterRole to the per-cluster ServiceAccount.
171-
- apiGroups:
172-
- rbac.authorization.k8s.io
173-
resources:
174-
- clusterroles
175-
verbs:
176-
- bind
177-
resourceNames:
178-
- {{ include "operator.name" . }}-clusterrole
179-
180179
---
181180
apiVersion: rbac.authorization.k8s.io/v1
182181
kind: ClusterRole

0 commit comments

Comments
 (0)