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