Skip to content

Commit

Permalink
update clusterrole and roles (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
vepatel authored Dec 17, 2024
1 parent 84d9a3d commit c7687f3
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ rules:
- watch
- update
- create
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- get
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- apiGroups:
- ""
resources:
Expand Down
55 changes: 20 additions & 35 deletions bundle/manifests/nginx-ingress-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ metadata:
categories: Monitoring, Networking
certified: "true"
containerImage: quay.io/nginx/nginx-ingress-operator:3.0.0
createdAt: "2024-12-17T10:28:34Z"
createdAt: "2024-12-17T14:09:56Z"
description: The NGINX Ingress Operator is a Kubernetes/OpenShift component which
deploys and manages one or more NGINX/NGINX Plus Ingress Controllers
features.operators.openshift.io/cnf: "false"
Expand Down Expand Up @@ -269,6 +269,25 @@ spec:
spec:
clusterPermissions:
- rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -481,40 +500,6 @@ spec:
runAsNonRoot: true
serviceAccountName: nginx-ingress-operator-controller-manager
terminationGracePeriodSeconds: 10
permissions:
- rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
serviceAccountName: nginx-ingress-operator-controller-manager
strategy: deployment
installModes:
- supported: true
Expand Down
14 changes: 1 addition & 13 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# permissions to do leader election.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: role
Expand All @@ -11,18 +11,6 @@ metadata:
app.kubernets.io/managed-by: kustomize
name: leader-election-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/leader_election_role_binding.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: rolebinding
Expand All @@ -11,7 +11,7 @@ metadata:
name: leader-election-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: leader-election-role
subjects:
- kind: ServiceAccount
Expand Down
15 changes: 15 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,21 @@ rules:
- watch
- update
- create
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- get
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit c7687f3

Please sign in to comment.