Skip to content

Backup fails without target: primary - "unable to find primary cluster" #54

@gliatti

Description

@gliatti

Hello,

I have created a cluster with 2 instances and the plugin and executed the following backup:

---
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
  name: pg16-pgbackrest-daily-backup
  namespace: postgres
spec:
  schedule: "0 3 * * *"
  backupOwnerReference: self
  cluster:
    name: pg16-pgbackrest
  method: plugin
#  target: primary
  pluginConfiguration:
    name: pgbackrest.dalibo.com

When I don't use target: primary I have the following error: unable to find primary cluster.
Using it fixes the backup.

  • CNPG: 1.27.0
  • Plugin: latest
  • kind v0.30.0 go1.24.6 linux/amd64

Robin,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions