Skip to content

Commit

Permalink
Fix RBACs for cluster-storage-operator
Browse files Browse the repository at this point in the history
Right now, the operator needs more permissions that would be necessary, but
we need to fix cluster-storage-operator and aws-ebs-csi-driver-operators
first.
  • Loading branch information
jsafrane committed Oct 20, 2022
1 parent a2d0623 commit e6e785e
Showing 1 changed file with 53 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,48 +1,58 @@
# TODO: Prune the RBACs as cluster-storage-operator and aws-ebs-csi-driver-operator are pruned.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: cluster-storage-operator-role
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- replicasets
verbs:
- '*'
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
- services
- configmaps
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- replicasets
verbs:
- '*'
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
- services
- configmaps
- pods
- endpoints
- events
- secrets
verbs:
- '*'
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
- rolebindings
verbs:
- watch
- list
- get
- create
- delete
- patch
- update

0 comments on commit e6e785e

Please sign in to comment.