Skip to content

Commit

Permalink
Rename the default database from app to paradedb (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe Noël <[email protected]>
  • Loading branch information
itay-grudev and philippemnoel authored Oct 2, 2024
1 parent 7399ace commit 1a95369
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 21 deletions.
4 changes: 2 additions & 2 deletions charts/paradedb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ icon: https://raw.githubusercontent.com/paradedb/paradedb/main/docs/logo/light.s
type: application

# The Chart version, set in the publish CI workflow from GitHub Actions Variables
# We default to v0.10.0 for testing and local development
version: 0.10.0
# We default to v0.10.3 for testing and local development
version: 0.10.3

sources:
- https://github.com/paradedb/charts
Expand Down
8 changes: 4 additions & 4 deletions charts/paradedb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
| cluster.imageName | string | `""` | Name of the container image, supporting both tags (<image>:<tag>) and digests for deterministic and repeatable deployments: <image>:<tag>@sha256:<digestValue> |
| cluster.imagePullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never or IfNotPresent. If not defined, it defaults to IfNotPresent. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images |
| cluster.imagePullSecrets | list | `[]` | The list of pull secrets to be used to pull the images. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-LocalObjectReference |
| cluster.initdb | object | `{}` | 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 |
| cluster.initdb | object | `{"database":"paradedb"}` | 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 |
| cluster.instances | int | `3` | Number of instances |
| cluster.logLevel | string | `"info"` | The instances' log level, one of the following values: error, warning, info (default), debug, trace |
| cluster.monitoring.customQueries | list | `[]` | Custom Prometheus metrics |
Expand Down 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 All @@ -230,7 +230,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
| recovery.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
| recovery.secret.name | string | `""` | Name of the backup credentials secret |
| type | string | `"paradedb"` | Type of the CNPG database. Available types: * `paradedb` |
| version.paradedb | string | `"0.10.0"` | ParadeDB defaults to v0.10.0 for testing and local development |
| version.paradedb | string | `"0.10.3"` | We default to v0.10.3 for testing and local development |
| version.postgresql | string | `"16"` | PostgreSQL major version to use |

## Maintainers
Expand Down
2 changes: 1 addition & 1 deletion charts/paradedb/examples/image-catalog-ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ type: postgresql
mode: standalone
version:
major: "16"
paradedb: "0.10.0"
paradedb: "0.10.3"
cluster:
instances: 1
imageCatalogRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/paradedb/examples/image-catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ type: postgresql
mode: standalone
version:
major: "16"
paradedb: "0.10.0"
paradedb: "0.10.3"
cluster:
instances: 1
backups:
Expand Down
2 changes: 1 addition & 1 deletion charts/paradedb/examples/paradedb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ type: paradedb
mode: standalone
version:
postgresql: "16.3"
paradedb: "0.10.0"
paradedb: "0.10.3"
cluster:
instances: 1
backups:
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 @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
timeouts:
apply: 1s
assert: 5m
assert: 7m
cleanup: 1m
steps:
- name: Clear the MinIO bucket
Expand All @@ -35,7 +35,7 @@ spec:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
- podLogs:
selector: cnpg.io/cluster=paradedb-cluster
selector: cnpg.io/cluster=paradedb-paradedb
- name: Initialize with ParadeDB sample data
timeouts:
apply: 1s
Expand Down Expand Up @@ -123,7 +123,7 @@ spec:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
- podLogs:
selector: cnpg.io/cluster=recovery-backup-pitr-cluster
selector: cnpg.io/cluster=recovery-backup-pitr-paradedb
- name: Verify the pre-backup data on the recovery cluster exists but not the post-backup data
try:
- apply:
Expand Down
7 changes: 6 additions & 1 deletion charts/paradedb/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@
"type": "array"
},
"initdb": {
"type": "object"
"type": "object",
"properties": {
"database": {
"type": "string"
}
}
},
"instances": {
"type": "integer"
Expand Down
14 changes: 7 additions & 7 deletions charts/paradedb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ version:
# -- PostgreSQL major version to use
postgresql: "16"
# -- The ParadeDB version, set in the publish CI workflow from the latest paradedb/paradedb GitHub tag
# -- We default to v0.10.0 for testing and local development
paradedb: "0.10.0"
# -- We default to v0.10.3 for testing and local development
paradedb: "0.10.3"

###
# -- Cluster mode of operation. Available modes:
Expand Down 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 @@ -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: app
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
Expand Down

0 comments on commit 1a95369

Please sign in to comment.