Skip to content

Commit 9a86c0f

Browse files
committed
chore: group rbac.authorization.k8s.io rules together
1 parent 81d950c commit 9a86c0f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ rules:
5252
- get
5353
- list
5454
- patch
55+
# Required to bind the product ClusterRole to the per-cluster ServiceAccount.
56+
- apiGroups:
57+
- rbac.authorization.k8s.io
58+
resources:
59+
- clusterroles
60+
verbs:
61+
- bind
62+
resourceNames:
63+
- {{ include "operator.name" . }}-clusterrole
5564
# StatefulSet created per role group. Applied via SSA, tracked for orphan cleanup, and
5665
# owned by the controller.
5766
- apiGroups:
@@ -125,15 +134,6 @@ rules:
125134
- get
126135
- list
127136
- watch
128-
# Required to bind the product ClusterRole to the per-cluster ServiceAccount.
129-
- apiGroups:
130-
- rbac.authorization.k8s.io
131-
resources:
132-
- clusterroles
133-
verbs:
134-
- bind
135-
resourceNames:
136-
- {{ include "operator.name" . }}-clusterrole
137137
# Listener created per role group for external access. Applied via SSA and tracked for orphan
138138
# cleanup.
139139
- apiGroups:

0 commit comments

Comments
 (0)