apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: cloudnative-pg-view
  labels:
    helm.sh/chart: cloudnative-pg-0.28.2
    app.kubernetes.io/name: cloudnative-pg
    app.kubernetes.io/instance: cloudnative-pg
    app.kubernetes.io/version: "1.29.1"
    app.kubernetes.io/managed-by: Helm
rules:
  - apiGroups:
      - postgresql.cnpg.io
    resources:
      - backups
      - clusters
      - clusters/status
      - databases
      - failoverquorums
      - poolers
      - publications
      - scheduledbackups
      - imagecatalogs
      - clusterimagecatalogs
      - subscriptions
    verbs:
      - get
      - list
      - watch
