---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: container-object-storage-interface-driver-sidecar
  labels:
    app.kubernetes.io/part-of: container-object-storage-interface-driver-sidecar
    app.kubernetes.io/component: sidecar
    app.kubernetes.io/name: cosi-driver-sample
rules:
  - apiGroups: ["objectstorage.k8s.io"]
    resources: ["buckets", "bucketaccesses","buckets/status", "bucketaccesses/status"]
    verbs: ["get", "list", "watch", "update", "create", "delete"]
  - apiGroups: ["coordination.k8s.io"]
    resources: ["leases"]
    verbs: ["get", "watch", "list", "delete", "update", "create"]
  - apiGroups: [""]
    resources: ["secrets", "events"]
    verbs: ["get", "delete", "update", "create"]
