Skip to content

Commit 95d91df

Browse files
author
Max Roby
committed
enable update process options
1 parent 1887555 commit 95d91df

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

charts/cloudnative-pg-cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cnpg-cluster
33
description: Create postgres tenant clusters managed by the CNPG Operator
44
type: application
5-
version: 0.3.6
5+
version: 0.3.7
66

77
maintainers:
88
- name: "cloudymax"

charts/cloudnative-pg-cluster/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ Create postgres tenant clusters managed by the CNPG Operator
3535
| certificates.user.enabled | bool | `false` | create a certificate for a user to connect to postgres using CertManager requires server and client certificate generation enabled |
3636
| certificates.user.username | string | `"app"` | name of the user to create a cert for, eg: the DbOwner specified earlier. This data populated into the commonName field of the certificate. |
3737
| externalClusters | list | `[]` | |
38-
| instances | int | `3` | |
38+
| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:16.0"` | image to use for all tenant pods |
39+
| instances | int | `3` | number of postgres replicas |
3940
| monitoring.enablePodMonitor | bool | `false` | enable monitoring via Prometheus |
4041
| name | string | `"cnpg"` | |
4142
| postgresql.pg_hba | list | `["hostnossl all all 0.0.0.0/0 reject","hostssl all all 0.0.0.0/0 cert clientcert=verify-full"]` | records for the pg_hba.conf file. ref: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html |
43+
| primaryUpdateStrategy | string | `"unsupervised"` | |
4244
| scheduledBackup.name | string | `"example-backup"` | name to use for your scheduled backup job |
4345
| scheduledBackup.spec.backupOwnerReference | string | `"self"` | |
4446
| scheduledBackup.spec.cluster.name | string | `"pg-backup"` | |

charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ kind: Cluster
44
metadata:
55
name: {{ .Values.name }}
66
spec:
7-
instances: {{ .Values.instances}}
7+
instances: {{ .Values.instances }}
8+
imageName: {{ .Values.imageName }}
9+
primaryUpdateStrategy: {{ .Values.primaryUpdateStrategy }}
810
{{- if .Values.backup }}
911
{{- with .Values.backup }}
1012
backup:

charts/cloudnative-pg-cluster/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
name: "cnpg"
22

3+
# -- number of postgres replicas
34
instances: 3
45

6+
# -- image to use for all tenant pods
7+
imageName: ghcr.io/cloudnative-pg/postgresql:16.0
8+
9+
# Examples of rolling update strategy:
10+
# unsupervised: automated update of the primary once all
11+
# replicas have been upgraded (default)
12+
# supervised: requires manual supervision to perform
13+
# the switchover of the primary
14+
primaryUpdateStrategy: unsupervised
15+
516
bootstrap:
617
initdb:
718
# -- initial database to create

0 commit comments

Comments
 (0)