From d5e336c80bc4f42a225984599d24731aa83ebd89 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 19 Dec 2025 03:19:30 +0100 Subject: [PATCH] feat: Added patch for restoring database --- apps/lldap/base/cluster-restore.yaml | 16 ++++++++++++++++ apps/lldap/base/kustomization.yaml | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 apps/lldap/base/cluster-restore.yaml diff --git a/apps/lldap/base/cluster-restore.yaml b/apps/lldap/base/cluster-restore.yaml new file mode 100644 index 0000000..b4858c6 --- /dev/null +++ b/apps/lldap/base/cluster-restore.yaml @@ -0,0 +1,16 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: lldap-db +spec: + bootstrap: + recovery: + source: source + externalClusters: + - name: source + plugin: + name: barman-cloud.cloudnative-pg.io + parameters: + barmanObjectName: garage-store + serverName: lldap-db + plugins: [] diff --git a/apps/lldap/base/kustomization.yaml b/apps/lldap/base/kustomization.yaml index 82ddaab..16bab7e 100644 --- a/apps/lldap/base/kustomization.yaml +++ b/apps/lldap/base/kustomization.yaml @@ -9,3 +9,9 @@ resources: - http-route.yaml - secret-s3-garage.yaml - object-store.yaml + +# Uncomment to restore database from backup +# patches: +# - path: cluster-restore.yaml +# target: +# kind: Cluster