Skip to content

Commit

Permalink
Merge pull request #25 from small-hack/enable-update-options
Browse files Browse the repository at this point in the history
enable update process options
  • Loading branch information
cloudymax authored Nov 10, 2023
2 parents bd07eb9 + 9b070de commit 0169023
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/cloudnative-pg-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cnpg-cluster
description: Create postgres tenant clusters managed by the CNPG Operator
type: application
version: 0.3.6
version: 0.3.7

maintainers:
- name: "cloudymax"
Expand Down
6 changes: 4 additions & 2 deletions charts/cloudnative-pg-cluster/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cnpg-cluster

![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)
![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)

Create postgres tenant clusters managed by the CNPG Operator

Expand Down Expand Up @@ -35,10 +35,12 @@ Create postgres tenant clusters managed by the CNPG Operator
| certificates.user.enabled | bool | `false` | create a certificate for a user to connect to postgres using CertManager requires server and client certificate generation enabled |
| 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. |
| externalClusters | list | `[]` | |
| instances | int | `3` | |
| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:16.0"` | image to use for all tenant pods |
| instances | int | `3` | number of postgres replicas minimum 1 required |
| monitoring.enablePodMonitor | bool | `false` | enable monitoring via Prometheus |
| name | string | `"cnpg"` | |
| 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 |
| primaryUpdateStrategy | string | `"unsupervised"` | |
| scheduledBackup.name | string | `"example-backup"` | name to use for your scheduled backup job |
| scheduledBackup.spec.backupOwnerReference | string | `"self"` | |
| scheduledBackup.spec.cluster.name | string | `"pg-backup"` | |
Expand Down
4 changes: 3 additions & 1 deletion charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ kind: Cluster
metadata:
name: {{ .Values.name }}
spec:
instances: {{ .Values.instances}}
instances: {{ .Values.instances }}
imageName: {{ .Values.imageName }}
primaryUpdateStrategy: {{ .Values.primaryUpdateStrategy }}
{{- if .Values.backup }}
{{- with .Values.backup }}
backup:
Expand Down
12 changes: 12 additions & 0 deletions charts/cloudnative-pg-cluster/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
name: "cnpg"

# -- number of postgres replicas
# minimum 1 required
instances: 3

# -- image to use for all tenant pods
imageName: ghcr.io/cloudnative-pg/postgresql:16.0

# Examples of rolling update strategy:
# unsupervised: automated update of the primary once all
# replicas have been upgraded (default)
# supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised

bootstrap:
initdb:
# -- initial database to create
Expand Down

0 comments on commit 0169023

Please sign in to comment.