From 712ce0da5280d6bdef5d158dd3829b5c3987c67f Mon Sep 17 00:00:00 2001 From: William P Date: Sun, 8 Nov 2026 22:20:36 -0500 Subject: [PATCH] add nextcloud-dryrun --- postgres/config/clusters/main.yaml | 6 +++++ .../config/databases/nextcloud-dryrun.yaml | 9 +++++++ postgres/config/nextcloud-dryrun_auth.yaml | 25 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 postgres/config/databases/nextcloud-dryrun.yaml create mode 100644 postgres/config/nextcloud-dryrun_auth.yaml diff --git a/postgres/config/clusters/main.yaml b/postgres/config/clusters/main.yaml index bf2d703..f0e5661 100644 --- a/postgres/config/clusters/main.yaml +++ b/postgres/config/clusters/main.yaml @@ -105,6 +105,12 @@ spec: login: true passwordSecret: name: nextcloud-auth + - name: nextcloud-dryrun + ensure: present + comment: nextcloud-dryrun + login: true + passwordSecret: + name: nextcloud-dryrun-auth - name: pooler ensure: present comment: pooler diff --git a/postgres/config/databases/nextcloud-dryrun.yaml b/postgres/config/databases/nextcloud-dryrun.yaml new file mode 100644 index 0000000..2a242ce --- /dev/null +++ b/postgres/config/databases/nextcloud-dryrun.yaml @@ -0,0 +1,9 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Database +metadata: + name: nextcloud-dryrun +spec: + name: nextcloud-dryrun + owner: nextcloud-dryrun + cluster: + name: weyma-pgsql \ No newline at end of file diff --git a/postgres/config/nextcloud-dryrun_auth.yaml b/postgres/config/nextcloud-dryrun_auth.yaml new file mode 100644 index 0000000..98bd89c --- /dev/null +++ b/postgres/config/nextcloud-dryrun_auth.yaml @@ -0,0 +1,25 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: nextcloud-dryrun-auth +spec: + data: + - remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: cloudnativepg + metadataPolicy: None + property: nextcloud_dryrun_pw + secretKey: password + refreshInterval: 1h + secretStoreRef: + kind: ClusterSecretStore + name: weyma-vault + target: + template: + data: + username: nextcloud + password: "{{ .password }}" + creationPolicy: Owner + deletionPolicy: Retain + name: nextcloud-dryrun-auth \ No newline at end of file