# Empty target Postgres instance for the to-copy restore. Keeping the spec # minimal - the CNPG driver overlays bootstrap.* and backup.* values when # the RestoreJob fires; the chart then renders externalClusters[] from # those values so the new cluster's restore_command can fetch WALs from # the source's S3 archive. # # This manifest is the reference for the same-namespace to-copy happy path: # deploy it alongside pg-src and the restore leaves the source running. It # is a manual / dev-cluster flow — the automated e2e suite (hack/e2e-chainsaw/) # does not exercise postgres backups. The cross-tenant variant (target in # tenant-test, source's seaweedfs in tenant-root) is blocked by the per-tenant # Cilium egress policy. --- apiVersion: apps.cozystack.io/v1alpha1 kind: Postgres metadata: name: pg-target spec: replicas: 2 size: 5Gi