percona / percona-postgresql-operator

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

K8SPG-559: fix `.status.backupType` #762

Closed pooknull closed 1 month ago

pooknull commented 2 months ago

K8SPG-559 Powered by Pull Request Badge

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

DESCRIPTION

Problem: The initial replica-create backup is incorrectly identified as incremental in the .status.backupType field.

Cause: The backup type is currently determined by parsing the --flag option in the backup job's COMMAND_OPTS environment. If this flag is not found, the backup type defaults to incremental. However, the replica-create backup job does not include this flag.

Solution: The operator should obtain the backup type from the pgbackrest info command.

CHECKLIST

Jira

Tests

Config/Logging/Testability

JNKPercona commented 1 month 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/762/commits/d738f5c5291b38b9b44da1a4222b27b55646c7c6 image: perconalab/percona-postgresql-operator:PR-762-d738f5c52