From be7e59eb9812b94b37be75da85bd2b33b0b2ae98 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Thu, 25 Sep 2025 10:54:04 +0100 Subject: [PATCH] forgejo: configure crunchydata postgres cluster to prune backups Signed-off-by: David Kirwan --- .../forgejo/templates/postgres-cluster.yaml.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/openshift-apps/forgejo/templates/postgres-cluster.yaml.j2 b/roles/openshift-apps/forgejo/templates/postgres-cluster.yaml.j2 index af29423912..606f045b23 100644 --- a/roles/openshift-apps/forgejo/templates/postgres-cluster.yaml.j2 +++ b/roles/openshift-apps/forgejo/templates/postgres-cluster.yaml.j2 @@ -34,8 +34,17 @@ spec: postgres-operator.crunchydata.com/instance-set: forgejo-ha backups: pgbackrest: + global: + repo1-retention-full: "1" + repo1-retention-full-type: time + manual: + options: + - --type=full + repoName: repo1 repos: - name: repo1 + schedules: + full: 0 1 * * 0 volume: volumeClaimSpec: accessModes: