Skip to content

Commit c7687f3

Browse files
authored
update clusterrole and roles (#436)
1 parent 84d9a3d commit c7687f3

5 files changed

+53
-50
lines changed

bundle/manifests/nginx-ingress-operator-nginx-ingress-admin_rbac.authorization.k8s.io_v1_clusterrole.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ rules:
5858
- watch
5959
- update
6060
- create
61+
- apiGroups:
62+
- apps
63+
resources:
64+
- daemonsets
65+
- deployments
66+
- replicasets
67+
- statefulsets
68+
verbs:
69+
- get
70+
- apiGroups:
71+
- ""
72+
resources:
73+
- nodes
74+
verbs:
75+
- get
6176
- apiGroups:
6277
- ""
6378
resources:

bundle/manifests/nginx-ingress-operator.clusterserviceversion.yaml

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ metadata:
224224
categories: Monitoring, Networking
225225
certified: "true"
226226
containerImage: quay.io/nginx/nginx-ingress-operator:3.0.0
227-
createdAt: "2024-12-17T10:28:34Z"
227+
createdAt: "2024-12-17T14:09:56Z"
228228
description: The NGINX Ingress Operator is a Kubernetes/OpenShift component which
229229
deploys and manages one or more NGINX/NGINX Plus Ingress Controllers
230230
features.operators.openshift.io/cnf: "false"
@@ -269,6 +269,25 @@ spec:
269269
spec:
270270
clusterPermissions:
271271
- rules:
272+
- apiGroups:
273+
- coordination.k8s.io
274+
resources:
275+
- leases
276+
verbs:
277+
- get
278+
- list
279+
- watch
280+
- create
281+
- update
282+
- patch
283+
- delete
284+
- apiGroups:
285+
- ""
286+
resources:
287+
- events
288+
verbs:
289+
- create
290+
- patch
272291
- apiGroups:
273292
- ""
274293
resources:
@@ -481,40 +500,6 @@ spec:
481500
runAsNonRoot: true
482501
serviceAccountName: nginx-ingress-operator-controller-manager
483502
terminationGracePeriodSeconds: 10
484-
permissions:
485-
- rules:
486-
- apiGroups:
487-
- ""
488-
resources:
489-
- configmaps
490-
verbs:
491-
- get
492-
- list
493-
- watch
494-
- create
495-
- update
496-
- patch
497-
- delete
498-
- apiGroups:
499-
- coordination.k8s.io
500-
resources:
501-
- leases
502-
verbs:
503-
- get
504-
- list
505-
- watch
506-
- create
507-
- update
508-
- patch
509-
- delete
510-
- apiGroups:
511-
- ""
512-
resources:
513-
- events
514-
verbs:
515-
- create
516-
- patch
517-
serviceAccountName: nginx-ingress-operator-controller-manager
518503
strategy: deployment
519504
installModes:
520505
- supported: true

config/rbac/leader_election_role.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# permissions to do leader election.
22
apiVersion: rbac.authorization.k8s.io/v1
3-
kind: Role
3+
kind: ClusterRole
44
metadata:
55
labels:
66
app.kubernetes.io/name: role
@@ -11,18 +11,6 @@ metadata:
1111
app.kubernets.io/managed-by: kustomize
1212
name: leader-election-role
1313
rules:
14-
- apiGroups:
15-
- ""
16-
resources:
17-
- configmaps
18-
verbs:
19-
- get
20-
- list
21-
- watch
22-
- create
23-
- update
24-
- patch
25-
- delete
2614
- apiGroups:
2715
- coordination.k8s.io
2816
resources:

config/rbac/leader_election_role_binding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: RoleBinding
2+
kind: ClusterRoleBinding
33
metadata:
44
labels:
55
app.kubernetes.io/name: rolebinding
@@ -11,7 +11,7 @@ metadata:
1111
name: leader-election-rolebinding
1212
roleRef:
1313
apiGroup: rbac.authorization.k8s.io
14-
kind: Role
14+
kind: ClusterRole
1515
name: leader-election-role
1616
subjects:
1717
- kind: ServiceAccount

config/rbac/role.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,21 @@ rules:
175175
- watch
176176
- update
177177
- create
178+
- apiGroups:
179+
- apps
180+
resources:
181+
- daemonsets
182+
- deployments
183+
- replicasets
184+
- statefulsets
185+
verbs:
186+
- get
187+
- apiGroups:
188+
- ""
189+
resources:
190+
- nodes
191+
verbs:
192+
- get
178193
- apiGroups:
179194
- ""
180195
resources:

0 commit comments

Comments
 (0)