Skip to content

Commit 3b11050

Browse files
committed
chore: Keep the rbac.authorization.k8s.io rules within a ClusterRole close to each other
1 parent 5319919 commit 3b11050

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ rules:
5858
- get
5959
- list
6060
- patch
61+
# Required to bind the product ClusterRole to per-cluster ServiceAccounts
62+
- apiGroups:
63+
- rbac.authorization.k8s.io
64+
resources:
65+
- clusterroles
66+
verbs:
67+
- bind
68+
resourceNames:
69+
- {{ include "operator.name" . }}-clusterrole
6170
# StatefulSet created per role group. Applied via SSA, tracked for orphan cleanup, and
6271
# owned by the controller.
6372
- apiGroups:
@@ -154,15 +163,6 @@ rules:
154163
- get
155164
- list
156165
- watch
157-
# Required to bind the product ClusterRole to per-cluster ServiceAccounts
158-
- apiGroups:
159-
- rbac.authorization.k8s.io
160-
resources:
161-
- clusterroles
162-
verbs:
163-
- bind
164-
resourceNames:
165-
- {{ include "operator.name" . }}-clusterrole
166166

167167
---
168168
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)