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 7, 2022
1 parent 46a1a33 commit 00ca6f4
Showing 1 changed file with 53 additions and 43 deletions.
@@ -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 00ca6f4

Please sign in to comment.