Skip to content

Commit 2e0985a

Browse files
committed
add more tsdb options
1 parent 5b03ff3 commit 2e0985a

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

charts/cloudnative-pg-cluster/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Create postgres tenant clusters managed by the CNPG Operator
2929
| certificates.user.username | list | `["app"]` | List of names of users to create a cert for, eg: the DbOwner specified earlier. This data populated into the commonName field of the certificate. |
3030
| enableSuperuserAccess | bool | `false` | CNPG disables the postgres superuser by default must be explicitly enabled |
3131
| externalClusters | list | `[]` | |
32+
| imageCatalogRef.create | bool | `true` | Whether to provision an image catalog. If imageCatalog.images is empty this option will be ignored. |
33+
| imageCatalogRef.images | list | `[]` | List of images to be provisioned in an image catalog. |
3234
| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:16.0"` | image to use for all tenant pods |
3335
| instances | int | `3` | number of postgres replicas minimum 1 required |
3436
| managed | object | `{"roles":[]}` | See https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-RoleConfiguration for explanation of all options |

charts/cloudnative-pg-cluster/templates/_helpers.tpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ Create the name of the service account to use
6161
{{- end }}
6262
{{- end }}
6363

64-
64+
{{/*
65+
Whether we need to use TimescaleDB defaults
66+
*/}}
67+
{{- define "cluster.useTimescaleDBDefaults" -}}
68+
{{ and (eq .Values.type "timescaledb") .Values.imageCatalog.create (empty .Values.imageCatalog.images) }}
69+
{{- end -}}
6570

6671
{{/*
6772
Postgres UID

charts/cloudnative-pg-cluster/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ enableSuperuserAccess: false
1515
# will be randomly generated if not specified.
1616
superuserSecret: ""
1717

18+
imageCatalogRef:
19+
# -- Whether to provision an image catalog. If imageCatalog.images is empty this option will be ignored.
20+
create: true
21+
# -- List of images to be provisioned in an image catalog.
22+
images: []
23+
# - image: ghcr.io/your_repo/your_image:your_tag
24+
# major: 16
25+
1826
# Examples of rolling update strategy:
1927
# unsupervised: automated update of the primary once all
2028
# replicas have been upgraded (default)

0 commit comments

Comments
 (0)