---
# Per-consumer CNPG Database CRs against apps-pg.
# Each entry is a database in the shared cluster, owned by a per-app
# role declared in helm/apps-pg-cluster.yaml under spec.managed.roles.
# See docs/apps-pg.md for the onboarding contract.
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
  name: vergabe-db                       # RAILIANCE-WP-0002 T04
  namespace: databases
  labels:
    app.kubernetes.io/name: apps-pg
    app.kubernetes.io/component: database-instance
    railiance.io/layer: s3-platform
    railiance.io/consumer: vergabe-teilnahme
spec:
  cluster:
    name: apps-pg
  name: vergabe_db
  owner: vergabe
  ensure: present
---
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
  name: coulomb-social-db                  # CSOC-WP-0002
  namespace: databases
  labels:
    app.kubernetes.io/name: apps-pg
    app.kubernetes.io/component: database-instance
    railiance.io/layer: s3-platform
    railiance.io/consumer: coulomb-social
spec:
  cluster:
    name: apps-pg
  name: coulomb_social_db
  owner: coulomb_social
  ensure: present
