# Role for external CSI provisioner and attacher.
# They need to modify Endpoints and ConfigMap for leader election.

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: csi-controller
rules:
- apiGroups: [""]
  resources: ["configmaps", "endpoints"]
  verbs: ["get", "watch", "list", "delete", "update", "create"]
