From 7bd191f9cba084c787cb35fdad3d8086442e7709 Mon Sep 17 00:00:00 2001 From: Dou Mok Date: Fri, 7 Nov 2025 13:47:25 -0800 Subject: [PATCH 1/3] Add default backup values to 'values.yaml' --- values.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/values.yaml b/values.yaml index ac5a897..5d5eb74 100644 --- a/values.yaml +++ b/values.yaml @@ -191,3 +191,15 @@ replica: ## This must match the name of one of the 'externalClusters' defined in 'init.externalClusters' ## source: "source-db" + +## Add backup capability to all clusters +## https://cloudnative-pg.io/documentation/1.27/backup/ +## +backup: + ## By default, configure the backup method to use k8s VolumeSnapshots as a default + ## https://cloudnative-pg.io/documentation/1.27/appendixes/backup_volumesnapshot/ + ## + volumeSnapshot: + ## @param backup.volumeSnapshot.className VolumeSnapshotClass to be used to make backups + ## + className: csi-cephfsplugin-snapclass From fe12abedd700e5ea562cd1b7cb9966af68109525 Mon Sep 17 00:00:00 2001 From: Dou Mok Date: Fri, 7 Nov 2025 13:49:32 -0800 Subject: [PATCH 2/3] Add backup section in 'pg_cluster.yaml' template to render user specified values --- templates/pg_cluster.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/pg_cluster.yaml b/templates/pg_cluster.yaml index 1bc28f3..8495b8b 100644 --- a/templates/pg_cluster.yaml +++ b/templates/pg_cluster.yaml @@ -65,3 +65,7 @@ spec: storage: storageClass: {{ .Values.persistence.storageClass }} size: {{ .Values.persistence.size }} + {{- with .Values.backup }} + backup: + {{- toYaml . | nindent 4 }} + {{- end }} \ No newline at end of file From 28c22f0290379b6981bdd8ce166d371fa5c70f82 Mon Sep 17 00:00:00 2001 From: Dou Mok Date: Mon, 10 Nov 2025 10:55:16 -0800 Subject: [PATCH 3/3] Update comment for backup.volumeSnapshot section in 'values.yaml' --- values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/values.yaml b/values.yaml index ed83dc0..5cafd66 100644 --- a/values.yaml +++ b/values.yaml @@ -193,7 +193,7 @@ replica: {} ## https://cloudnative-pg.io/documentation/1.27/backup/ ## backup: - ## By default, configure the backup method to use k8s VolumeSnapshots as a default + ## Configure the backup method to use k8s VolumeSnapshots as a default ## https://cloudnative-pg.io/documentation/1.27/appendixes/backup_volumesnapshot/ ## volumeSnapshot: