From 95b702d81d993d329688f69381b4f9f1c7889778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Wed, 25 Sep 2024 09:18:30 -0400 Subject: [PATCH 01/14] Rename the default database from to --- charts/paradedb/README.md | 4 ++-- charts/paradedb/templates/_bootstrap.tpl | 2 +- charts/paradedb/templates/tests/ping.yaml | 4 ++-- .../paradedb-minio-backup-restore/02-paradedb_write.yaml | 2 +- .../paradedb-minio-backup-restore/03-paradedb_test.yaml | 2 +- charts/paradedb/values.yaml | 8 ++++---- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/charts/paradedb/README.md b/charts/paradedb/README.md index e553893a6..ddb59c2f2 100644 --- a/charts/paradedb/README.md +++ b/charts/paradedb/README.md @@ -202,10 +202,10 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat | recovery.google.gkeEnvironment | bool | `false` | | | recovery.google.path | string | `"/"` | | | recovery.method | string | `"backup"` | Available recovery methods: * `backup` - Recovers a CNPG cluster from a CNPG backup (PITR supported) Needs to be on the same cluster in the same namespace. * `object_store` - Recovers a CNPG cluster from a barman object store (PITR supported). * `pg_basebackup` - Recovers a CNPG cluster viaa streaming replication protocol. Useful if you want to migrate databases to CloudNativePG, even from outside Kubernetes. # TODO | -| recovery.pgBaseBackup.database | string | `"app"` | Name of the database used by the application. Default: `app`. | +| recovery.pgBaseBackup.database | string | `"paradedb"` | Name of the database used by the application. Default: `paradedb`. | | recovery.pgBaseBackup.owner | string | `""` | Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch | | recovery.pgBaseBackup.secret | string | `""` | Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. | -| recovery.pgBaseBackup.source.database | string | `"app"` | | +| recovery.pgBaseBackup.source.database | string | `"paradedb"` | | | recovery.pgBaseBackup.source.host | string | `""` | | | recovery.pgBaseBackup.source.passwordSecret.create | bool | `false` | Whether to create a secret for the password | | recovery.pgBaseBackup.source.passwordSecret.key | string | `"password"` | The key in the secret containing the password | diff --git a/charts/paradedb/templates/_bootstrap.tpl b/charts/paradedb/templates/_bootstrap.tpl index e8127cd6c..3cd2afa78 100644 --- a/charts/paradedb/templates/_bootstrap.tpl +++ b/charts/paradedb/templates/_bootstrap.tpl @@ -16,7 +16,7 @@ bootstrap: - CREATE EXTENSION IF NOT EXISTS pg_analytics; - CREATE EXTENSION IF NOT EXISTS pg_ivm; - CREATE EXTENSION IF NOT EXISTS vector; - - ALTER DATABASE "{{ default "app" .Values.cluster.initdb.database }}" SET search_path TO public,paradedb; + - ALTER DATABASE "{{ default "paradedb" .Values.cluster.initdb.database }}" SET search_path TO public,paradedb; {{- end }} {{- with .Values.cluster.initdb }} {{- range .postInitApplicationSQL }} diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index 95a474630..968fad364 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-app + name: {{ include "cluster.fullname" . }}-paradedb key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-app + name: {{ include "cluster.fullname" . }}-paradedb key: password args: - "-c" diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml index 56d96ba64..647d1c6ab 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-app + name: paradedb-paradedb key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml index 3741db798..3475240a0 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-app + name: paradedb-paradedb key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index aa5877925..63714c453 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -89,8 +89,8 @@ recovery: # See https://cloudnative-pg.io/documentation/1.22/bootstrap/#bootstrap-from-a-live-cluster-pg_basebackup pgBaseBackup: - # -- Name of the database used by the application. Default: `app`. - database: app + # -- Name of the database used by the application. Default: `paradedb`. + database: paradedb # -- Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. secret: "" # -- Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch @@ -99,7 +99,7 @@ recovery: host: "" port: 5432 username: "" - database: "app" + database: "paradedb" sslMode: "verify-full" passwordSecret: # -- Whether to create a secret for the password @@ -253,7 +253,7 @@ cluster: # See: https://cloudnative-pg.io/documentation/current/bootstrap/ # See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb initdb: {} - # database: app + # database: paradedb # owner: "" # Defaults to the database name # secret: # name: "" # Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch From 9b9e1aedb3562b6ea4ed281b5c363cdc64f1887d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Wed, 25 Sep 2024 09:40:30 -0400 Subject: [PATCH 02/14] Keep -app for tests --- charts/paradedb/templates/tests/ping.yaml | 4 ++-- .../test/paradedb-minio-backup-restore/02-paradedb_write.yaml | 2 +- .../test/paradedb-minio-backup-restore/03-paradedb_test.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index 968fad364..95a474630 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb + name: {{ include "cluster.fullname" . }}-app key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb + name: {{ include "cluster.fullname" . }}-app key: password args: - "-c" diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml index 647d1c6ab..56d96ba64 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-paradedb + name: paradedb-app key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml index 3475240a0..3741db798 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-paradedb + name: paradedb-app key: uri image: alpine:3.19 command: ['sh', '-c'] From 7bacc5a670b8cc324de125a02237186003183cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Wed, 25 Sep 2024 10:42:10 -0400 Subject: [PATCH 03/14] Try this --- charts/paradedb/templates/tests/ping.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index 95a474630..968fad364 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-app + name: {{ include "cluster.fullname" . }}-paradedb key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-app + name: {{ include "cluster.fullname" . }}-paradedb key: password args: - "-c" From 4ebd32646e56d81f19bacb5088555f577232996a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Wed, 25 Sep 2024 10:52:14 -0400 Subject: [PATCH 04/14] Try this --- charts/paradedb/templates/tests/ping.yaml | 4 ++-- .../test/paradedb-minio-backup-restore/02-paradedb_write.yaml | 2 +- .../test/paradedb-minio-backup-restore/03-paradedb_test.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index 968fad364..59a6e8f72 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb + name: {{ include "cluster.fullname" . }} key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb + name: {{ include "cluster.fullname" . }} key: password args: - "-c" diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml index 56d96ba64..74d3c02d1 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-app + name: paradedb key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml index 3741db798..b0b041115 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-app + name: paradedb key: uri image: alpine:3.19 command: ['sh', '-c'] From 94e29c006680a4f90a01493ded2f535bec416383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Wed, 25 Sep 2024 11:30:15 -0400 Subject: [PATCH 05/14] Test this... --- charts/paradedb/templates/tests/ping.yaml | 4 ++-- .../test/paradedb-minio-backup-restore/02-paradedb_write.yaml | 2 +- .../test/paradedb-minio-backup-restore/03-paradedb_test.yaml | 2 +- charts/paradedb/values.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index 59a6e8f72..acfde0478 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }} + name: {{ include "cluster.fullname" . }}-paradedb1 key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }} + name: {{ include "cluster.fullname" . }}-paradedb1 key: password args: - "-c" diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml index 74d3c02d1..8cff5a9b4 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb + name: paradedb-paradedb1 key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml index b0b041115..f97d593af 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb + name: paradedb-paradedb1 key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index 63714c453..d84805f99 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -90,7 +90,7 @@ recovery: # See https://cloudnative-pg.io/documentation/1.22/bootstrap/#bootstrap-from-a-live-cluster-pg_basebackup pgBaseBackup: # -- Name of the database used by the application. Default: `paradedb`. - database: paradedb + database: paradedb1 # -- Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. secret: "" # -- Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch @@ -99,7 +99,7 @@ recovery: host: "" port: 5432 username: "" - database: "paradedb" + database: "paradedb1" sslMode: "verify-full" passwordSecret: # -- Whether to create a secret for the password From 3761ab82e6226811ea980466ff682250573d5da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Thu, 26 Sep 2024 10:14:04 -0400 Subject: [PATCH 06/14] Try this --- charts/paradedb/templates/_helpers.tpl | 2 -- 1 file changed, 2 deletions(-) diff --git a/charts/paradedb/templates/_helpers.tpl b/charts/paradedb/templates/_helpers.tpl index 041e90353..c30958b97 100644 --- a/charts/paradedb/templates/_helpers.tpl +++ b/charts/paradedb/templates/_helpers.tpl @@ -101,8 +101,6 @@ Postgres UID {{- define "cluster.postgresUID" -}} {{- if ge (int .Values.cluster.postgresUID) 0 -}} {{- .Values.cluster.postgresUID }} - {{- else if eq .Values.type "paradedb" -}} - {{- 999 -}} {{- else -}} {{- 26 -}} {{- end -}} From 1037273e994e991bf70bb31ea67ab55ece12cd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Thu, 26 Sep 2024 11:19:08 -0400 Subject: [PATCH 07/14] Move to paradedb from paradedb1 --- charts/paradedb/templates/tests/ping.yaml | 4 ++-- .../test/paradedb-minio-backup-restore/02-paradedb_write.yaml | 2 +- .../test/paradedb-minio-backup-restore/03-paradedb_test.yaml | 2 +- charts/paradedb/values.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index acfde0478..968fad364 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb1 + name: {{ include "cluster.fullname" . }}-paradedb key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb1 + name: {{ include "cluster.fullname" . }}-paradedb key: password args: - "-c" diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml index 8cff5a9b4..647d1c6ab 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-paradedb1 + name: paradedb-paradedb key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml index f97d593af..3475240a0 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-paradedb1 + name: paradedb-paradedb key: uri image: alpine:3.19 command: ['sh', '-c'] diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index d84805f99..63714c453 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -90,7 +90,7 @@ recovery: # See https://cloudnative-pg.io/documentation/1.22/bootstrap/#bootstrap-from-a-live-cluster-pg_basebackup pgBaseBackup: # -- Name of the database used by the application. Default: `paradedb`. - database: paradedb1 + database: paradedb # -- Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. secret: "" # -- Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch @@ -99,7 +99,7 @@ recovery: host: "" port: 5432 username: "" - database: "paradedb1" + database: "paradedb" sslMode: "verify-full" passwordSecret: # -- Whether to create a secret for the password From 2cc099653a6565af67148627111b395eccbb7b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:17:04 -0400 Subject: [PATCH 08/14] Update 02-paradedb_write.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- .../test/paradedb-minio-backup-restore/02-paradedb_write.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml index 647d1c6ab..56d96ba64 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/02-paradedb_write.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-paradedb + name: paradedb-app key: uri image: alpine:3.19 command: ['sh', '-c'] From d7c29eac9a47d2f2a4c4955fb5c9c69e6302b859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:17:25 -0400 Subject: [PATCH 09/14] Update ping.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- charts/paradedb/templates/tests/ping.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/paradedb/templates/tests/ping.yaml b/charts/paradedb/templates/tests/ping.yaml index 968fad364..95a474630 100644 --- a/charts/paradedb/templates/tests/ping.yaml +++ b/charts/paradedb/templates/tests/ping.yaml @@ -23,12 +23,12 @@ spec: - name: PGUSER valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb + name: {{ include "cluster.fullname" . }}-app key: username - name: PGPASS valueFrom: secretKeyRef: - name: {{ include "cluster.fullname" . }}-paradedb + name: {{ include "cluster.fullname" . }}-app key: password args: - "-c" From 3819e521db406456e323f55ba982e84e6b4c6bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:17:37 -0400 Subject: [PATCH 10/14] Update 03-paradedb_test.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- .../test/paradedb-minio-backup-restore/03-paradedb_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml index 3475240a0..3741db798 100644 --- a/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml +++ b/charts/paradedb/test/paradedb-minio-backup-restore/03-paradedb_test.yaml @@ -12,7 +12,7 @@ spec: - name: DB_URI valueFrom: secretKeyRef: - name: paradedb-paradedb + name: paradedb-app key: uri image: alpine:3.19 command: ['sh', '-c'] From 20fcc2ef6124d020a208bec454a0287ceeb533a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:18:51 -0400 Subject: [PATCH 11/14] Update values.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- charts/paradedb/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index 63714c453..c889d6757 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -253,7 +253,7 @@ cluster: # See: https://cloudnative-pg.io/documentation/current/bootstrap/ # See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb initdb: {} - # database: paradedb + database: paradedb # owner: "" # Defaults to the database name # secret: # name: "" # Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch From 8f31f1a4da7c0adf0f6e22b6c18e7dbe9a5ac8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:28:20 -0400 Subject: [PATCH 12/14] Update values.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- charts/paradedb/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index c889d6757..63714c453 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -253,7 +253,7 @@ cluster: # See: https://cloudnative-pg.io/documentation/current/bootstrap/ # See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb initdb: {} - database: paradedb + # database: paradedb # owner: "" # Defaults to the database name # secret: # name: "" # Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch From 1d8ddee68a600bbb329fa5662d7384f14a4b3379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:28:59 -0400 Subject: [PATCH 13/14] Update values.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- charts/paradedb/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index 63714c453..e1e7bcaaf 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -252,8 +252,8 @@ cluster: # -- BootstrapInitDB is the configuration of the bootstrap process when initdb is used. # See: https://cloudnative-pg.io/documentation/current/bootstrap/ # See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb - initdb: {} - # database: paradedb + initdb: + database: paradedb # owner: "" # Defaults to the database name # secret: # name: "" # Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch From 073bd85fa5111b9f6b9f521b03a5345505b04cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= <21990816+philippemnoel@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:45:58 -0400 Subject: [PATCH 14/14] Update values.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> --- charts/paradedb/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/paradedb/values.yaml b/charts/paradedb/values.yaml index e1e7bcaaf..c632e9488 100644 --- a/charts/paradedb/values.yaml +++ b/charts/paradedb/values.yaml @@ -90,7 +90,7 @@ recovery: # See https://cloudnative-pg.io/documentation/1.22/bootstrap/#bootstrap-from-a-live-cluster-pg_basebackup pgBaseBackup: # -- Name of the database used by the application. Default: `paradedb`. - database: paradedb + database: app # -- Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. secret: "" # -- Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch @@ -99,7 +99,7 @@ recovery: host: "" port: 5432 username: "" - database: "paradedb" + database: "app" sslMode: "verify-full" passwordSecret: # -- Whether to create a secret for the password