Skip to content

Commit 6479f5b

Browse files
committed
chore: Group rbac.authorization.k8s.io rules together
1 parent e9090cf commit 6479f5b

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • deploy/helm/opensearch-operator/templates

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ rules:
4040
- list
4141
- patch
4242
- watch
43+
# Required to bind the product ClusterRole to the per-rolegroup ServiceAccount.
44+
- apiGroups:
45+
- rbac.authorization.k8s.io
46+
resources:
47+
- clusterroles
48+
verbs:
49+
- bind
50+
resourceNames:
51+
- {{ include "operator.name" . }}-clusterrole
4352
# StatefulSet created per role group. Applied via SSA, tracked for orphan cleanup, and
4453
# owned by the controller.
4554
- apiGroups:
@@ -119,15 +128,6 @@ rules:
119128
- {{ include "operator.name" . }}clusters/status
120129
verbs:
121130
- patch
122-
# Required to bind the product ClusterRole to the per-rolegroup ServiceAccount.
123-
- apiGroups:
124-
- rbac.authorization.k8s.io
125-
resources:
126-
- clusterroles
127-
verbs:
128-
- bind
129-
resourceNames:
130-
- {{ include "operator.name" . }}-clusterrole
131131
---
132132
apiVersion: rbac.authorization.k8s.io/v1
133133
kind: ClusterRole

0 commit comments

Comments
 (0)