Skip to content

Commit 0169023

Browse files
authored
Merge pull request #25 from small-hack/enable-update-options
enable update process options
2 parents bd07eb9 + 9b070de commit 0169023

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cnpg-cluster
22

3-
![Version: 0.3.6](https://img.shields.io/badge/Version-0.3.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.3.7](https://img.shields.io/badge/Version-0.3.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
Create postgres tenant clusters managed by the CNPG Operator
66

@@ -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 minimum 1 required |
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
name: "cnpg"
22

3+
# -- number of postgres replicas
4+
# minimum 1 required
35
instances: 3
46

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

0 commit comments

Comments
 (0)