apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  labels:
    component: operator
  name: cc-operator
  namespace: confluent-operator
rules:
  - apiGroups:
      - cluster.confluent.com
    resources:
      - "*"
    verbs:
      - "*"
  - apiGroups:
      - operator.confluent.cloud
    resources:
      - "*"
    verbs:
      - "*"
  - apiGroups:
      - policy
    resources:
      - poddisruptionbudgets
    verbs:
      - "*"
  - apiGroups:
      - apps
    resources:
      - deployments
      - deployments/scale
      - deployments/status
      - replicasets
      - replicasets/scale
      - replicasets/status
      - statefulsets
      - statefulsets/scale
      - statefulsets/status
    verbs:
      - "*"
  - apiGroups:
      - ""
    resources:
      - configmaps
      - endpoints
      - events
      - persistentvolumeclaims
      - pods
      - pods/exec
      - secrets
      - services
      - serviceaccounts
    verbs:
      - "*"
