Skip to content

Commit

Permalink
Rename the default database from to
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemnoel committed Sep 25, 2024
1 parent fe22fc7 commit 013ff55
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions charts/paradedb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion charts/paradedb/templates/_bootstrap.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bootstrap:
- CREATE EXTENSION IF NOT EXISTS pg_ivm;
- CREATE EXTENSION IF NOT EXISTS vector;
- CREATE EXTENSION IF NOT EXISTS vectorscale;
- 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 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/paradedb/templates/tests/ping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
8 changes: 4 additions & 4 deletions charts/paradedb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 013ff55

Please sign in to comment.