Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RBACs for cluster-storage-operator
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
Showing
1 changed file
with
53 additions
and
43 deletions.
There are no files selected for viewing
96 changes: 53 additions & 43 deletions
96
control-plane-operator/controllers/hostedcontrolplane/storage/assets/role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |