apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: redis-operator
  labels:
    app.kubernetes.io/name: redis-operator
    helm.sh/chart: redis-operator-0.23.0
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/instance: redis-operator
    app.kubernetes.io/version: 0.23.0
    app.kubernetes.io/component: role
    app.kubernetes.io/part-of: redis-operator
rules:
  - apiGroups:
      - redis.redis.opstreelabs.in
    resources:
      - rediss
      - redisclusters
      - redisreplications
      - redis
      - rediscluster
      - redissentinel
      - redissentinels
      - redisreplication
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - nonResourceURLs:
      - '*'
    verbs:
      - get
  - apiGroups:
      - "apiextensions.k8s.io"
    resources:
      - "customresourcedefinitions"
    verbs:
      - "get"
      - "list"
      - "watch"
  - apiGroups:
      - redis.redis.opstreelabs.in
    resources:
      - redis/finalizers
      - rediscluster/finalizers
      - redisclusters/finalizers
      - redissentinel/finalizers
      - redissentinels/finalizers
      - redisreplication/finalizers
      - redisreplications/finalizers
    verbs:
      - update
  - apiGroups:
      - redis.redis.opstreelabs.in
    resources:
      - redis/status
      - rediscluster/status
      - redisclusters/status
      - redissentinel/status
      - redissentinels/status
      - redisreplication/status
      - redisreplications/status
    verbs:
      - get
      - patch
      - update
  - apiGroups:
      - ""
    resources:
      - secrets
      - pods/exec
      - pods
      - services
      - configmaps
      - events
      - persistentvolumeclaims
      - namespace
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - apps
    resources:
      - statefulsets
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - "coordination.k8s.io"
    resources:
      - leases
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - "policy"
    resources:
      - poddisruptionbudgets
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
