zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.37k stars 980 forks source link

wal-g backup retention not working since 1.13.0 #2786

Open bo0ts opened 1 month ago

bo0ts commented 1 month ago

Since upgrading to postgres-operator 1.13.0 old wal-g backups are not deleted anymore.

We use the following backup related configuration:

kind: ConfigMap
apiVersion: v1
metadata:
  name: postgres-pod-config
data:
  AWS_ACCESS_KEY_ID: ...
  AWS_SECRET_ACCESS_KEY: ...
  AWS_S3_FORCE_PATH_STYLE: "true"
  AWS_REGION: ...
  AWS_ENDPOINT: ...
  USE_WALG_BACKUP: "true"
  USE_WALG_RESTORE: "true"
  WALG_DISABLE_S3_SSE: "true"
  WAL_S3_BUCKET: ...

We suspect that this is related to the following issue in Spilo https://github.com/zalando/spilo/issues/1015