From 2cd83de29387f2064f949651249a9d86bf763e48 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 19 Dec 2025 03:19:30 +0100 Subject: [PATCH] feat: Retore test --- apps/lldap/base/object-store.yaml | 2 +- apps/lldap/staging/cluster-restore.yaml | 16 ++++++++++++++++ apps/lldap/staging/kustomization.yaml | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 apps/lldap/staging/cluster-restore.yaml diff --git a/apps/lldap/base/object-store.yaml b/apps/lldap/base/object-store.yaml index 9b4e804..3f2bbd0 100644 --- a/apps/lldap/base/object-store.yaml +++ b/apps/lldap/base/object-store.yaml @@ -5,7 +5,7 @@ metadata: namespace: lldap spec: configuration: - destinationPath: s3://cnpg-backup/lldap-testing + destinationPath: s3://cnpg-backup s3Credentials: accessKeyId: name: s3-garage diff --git a/apps/lldap/staging/cluster-restore.yaml b/apps/lldap/staging/cluster-restore.yaml new file mode 100644 index 0000000..b4858c6 --- /dev/null +++ b/apps/lldap/staging/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/staging/kustomization.yaml b/apps/lldap/staging/kustomization.yaml index e2b8913..64d16f0 100644 --- a/apps/lldap/staging/kustomization.yaml +++ b/apps/lldap/staging/kustomization.yaml @@ -10,6 +10,9 @@ patches: - path: cluster.yaml target: kind: Cluster + - path: cluster-restore.yaml + target: + kind: Cluster - path: object-store.yaml target: kind: ObjectStore