Skip to content

Commit 27927f5

Browse files
committed
chore: Keep the rbac.authorization.k8s.io rules within a ClusterRole close to each other
1 parent ab656a9 commit 27927f5

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ rules:
4141
- list
4242
- patch
4343
- watch
44+
# Required to bind the product ClusterRole to the per-cluster ServiceAccount.
45+
- apiGroups:
46+
- rbac.authorization.k8s.io
47+
resources:
48+
- clusterroles
49+
verbs:
50+
- bind
51+
resourceNames:
52+
- {{ include "operator.name" . }}-clusterrole
4453
# StatefulSet created per role group (broker, KRaft controller). Applied via
4554
# SSA, tracked for orphan cleanup, and owned by the controller.
4655
- apiGroups:
@@ -124,15 +133,6 @@ rules:
124133
- list
125134
- patch
126135
- watch
127-
# Required to bind the product ClusterRole to the per-cluster ServiceAccount.
128-
- apiGroups:
129-
- rbac.authorization.k8s.io
130-
resources:
131-
- clusterroles
132-
verbs:
133-
- bind
134-
resourceNames:
135-
- {{ include "operator.name" . }}-clusterrole
136136
---
137137
# Product ClusterRole: bound (via per KafkaCluster RoleBinding) to the ServiceAccount that Kafka
138138
# workload pods (brokers, KRaft controllers) run as.

0 commit comments

Comments
 (0)