Skip to content

Commit

Permalink
Fixed cron database name (#61)
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 Nov 19, 2024
1 parent 7fe2691 commit d5e4b65
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 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.12.1 for testing and local development
version: 0.12.1
# We default to v0.12.2 for testing and local development
version: 0.12.2

sources:
- https://github.com/paradedb/charts
Expand Down
2 changes: 1 addition & 1 deletion charts/paradedb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,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` * `paradedb-enterprise` |
| version.paradedb | string | `"0.12.1"` | We default to v0.12.1 for testing and local development |
| version.paradedb | string | `"0.12.2"` | We default to v0.12.2 for testing and local development |
| version.postgresql | string | `"17"` | PostgreSQL major version to use |
| poolers[].name | string | `` | Name of the pooler resource |
| poolers[].instances | number | `1` | The number of replicas we want |
Expand Down
14 changes: 12 additions & 2 deletions charts/paradedb/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,19 @@ There is a separate document outlining the recovery procedure here: **[Recovery]
There are several configuration examples in the [examples](examples) directory. Refer to them for a basic setup and
refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentation/current/) for more advanced configurations.

## Values

{{ template "chart.valuesSection" . }}
| poolers[].name | string | `` | Name of the pooler resource |
| poolers[].instances | number | `1` | The number of replicas we want |
| poolers[].type | [PoolerType][PoolerType] | `rw` | Type of service to forward traffic to. Default: `rw`. |
| poolers[].poolMode | [PgBouncerPoolMode][PgBouncerPoolMode] | `session` | The pool mode. Default: `session`. |
| poolers[].authQuerySecret | [LocalObjectReference][LocalObjectReference] | `{}` | The credentials of the user that need to be used for the authentication query. |
| poolers[].authQuery | string | `{}` | The credentials of the user that need to be used for the authentication query. |
| poolers[].parameters | map[string]string | `{}` | Additional parameters to be passed to PgBouncer - please check the CNPG documentation for a list of options you can configure |
| poolers[].template | [PodTemplateSpec][PodTemplateSpec] | `{}` | The template of the Pod to be created |
| poolers[].template | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
| poolers[].pg_hba | []string | `{}` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
| poolers[].monitoring.enabled | bool | `false` | Whether to enable monitoring for the Pooler. |
| poolers[].monitoring.podMonitor.enabled | bool | `true` | Create a podMonitor for the Pooler. |


{{ template "chart.maintainersSection" . }}
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.12.1"
paradedb: "0.12.2"
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: "17"
paradedb: "0.12.1"
paradedb: "0.12.2"
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: "17.0"
paradedb: "0.12.1"
paradedb: "0.12.2"
cluster:
instances: 1
backups:
Expand Down
5 changes: 4 additions & 1 deletion charts/paradedb/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ spec:
pg_ident:
{{- toYaml .pg_ident | nindent 6 }}
parameters:
{{- toYaml .parameters | nindent 6 }}
{{ with .parameters }}
{{- toYaml . | nindent 6 }}
{{ end }}
cron.database_name: postgres
{{ end }}

managed:
Expand Down
8 changes: 3 additions & 5 deletions charts/paradedb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ version:
# -- PostgreSQL major version to use
postgresql: "17"
# -- The ParadeDB version, set in the publish CI workflow from the latest paradedb/paradedb GitHub tag
# -- We default to v0.12.1 for testing and local development
paradedb: "0.12.1"
# -- We default to v0.12.2 for testing and local development
paradedb: "0.12.2"

###
# -- Cluster mode of operation. Available modes:
Expand Down Expand Up @@ -291,9 +291,7 @@ cluster:

postgresql:
# -- PostgreSQL configuration options (postgresql.conf)
parameters:
# Required by pg_cron
cron.database_name: postgres
parameters: {}
# max_connections: 300
# -- PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file)
pg_hba: []
Expand Down

0 comments on commit d5e4b65

Please sign in to comment.