percona / percona-postgresql-operator

Percona Operator for PostgreSQL
https://www.percona.com/doc/kubernetes-operator-for-postgresql/index.html
Apache License 2.0
258 stars 50 forks source link

K8SPG-506: add backup name to pg-backup status #722

Closed pooknull closed 3 months ago

pooknull commented 4 months ago

K8SPG-506 Powered by Pull Request Badge

https://perconadev.atlassian.net/browse/K8SPG-506

DESCRIPTION

Problem: To restore a backup, the user needs to execute kubectl exec -it cluster1-repo-host-0 -- pgbackrest info to obtain the backup name.

Solution: The operator should add a new field called .status.backupName to the pg-backup. The operator will retrieve the backup name from pgbackrest info.

To differentiate backups in the pgbackrest info output, the operator should add the following annotations to the pgbackrest backups:

Additionally, this PR adds the pgv2.percona.com/pgbackrest-backup-job-type annotation to every pg-backup to distinguish between replica-create and manual backups.

CHECKLIST

Jira

Tests

Config/Logging/Testability

JNKPercona commented 3 months ago
Test name Status
custom-extensions passed
demand-backup passed
init-deploy passed
monitoring passed
operator-self-healing passed
scaling passed
scheduled-backup passed
self-healing passed
start-from-backup passed
tablespaces passed
telemetry-transfer passed
upgrade-minor passed
users passed
We run 13 out of 13

commit: https://github.com/percona/percona-postgresql-operator/pull/722/commits/0ea45fd1b349e789afa5a59d15d430b522b57e44 image: perconalab/percona-postgresql-operator:PR-722-0ea45fd1b