apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  annotations:
    cnpg.io/operatorVersion: 1.28.3
  creationTimestamp: "2026-07-14T08:42:50Z"
  labels:
    app.kubernetes.io/managed-by: cloudnative-pg
    cnpg.io/cluster: cnpg-db
  name: cnpg-db
  namespace: openstack
  ownerReferences:
  - apiVersion: postgresql.cnpg.io/v1
    controller: true
    kind: Cluster
    name: cnpg-db
    uid: a089227b-9b7e-4ec1-bf61-60b505aaaa6f
  resourceVersion: "2730"
  uid: 092f7422-a89a-4c2f-9b8b-de473f0f19e3
rules:
- apiGroups:
  - ""
  resourceNames:
  - cnpg-db
  - cnpg-default-monitoring
  resources:
  - configmaps
  verbs:
  - get
  - watch
- apiGroups:
  - ""
  resourceNames:
  - cnpg-db-app
  - cnpg-db-ca
  - cnpg-db-replication
  - cnpg-db-server
  - cnpg-db-superuser
  resources:
  - secrets
  verbs:
  - get
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resourceNames:
  - cnpg-db
  resources:
  - clusters
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resourceNames:
  - cnpg-db
  resources:
  - clusters/status
  verbs:
  - get
  - patch
  - update
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - backups
  verbs:
  - list
  - get
  - delete
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - backups/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - ""
  resources:
  - events
  verbs:
  - create
  - patch
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - databases
  verbs:
  - get
  - update
  - list
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - databases/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - publications
  verbs:
  - get
  - update
  - list
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - publications/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - subscriptions
  verbs:
  - get
  - update
  - list
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resources:
  - subscriptions/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - postgresql.cnpg.io
  resourceNames:
  - cnpg-db
  resources:
  - failoverquorums
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - postgresql.cnpg.io
  resourceNames:
  - cnpg-db
  resources:
  - failoverquorums/status
  verbs:
  - get
  - patch
  - update
  - watch
