From 5cca3b27172ea37c59963cc942d02f394cc37297 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 24 May 2025 12:38:46 -0500 Subject: [PATCH] add barman --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/README.md | 2 +- charts/postgres-cluster/templates/_bootstrap.tpl | 1 + charts/postgres-cluster/templates/_helpers.tpl | 2 +- charts/postgres-cluster/templates/cluster.yaml | 2 ++ 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 2411ef4..3905f9c 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 6.4.0 +version: 6.4.1 description: Cloudnative-pg Cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index b99dad4..585760e 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 6.4.0](https://img.shields.io/badge/Version-6.4.0-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) +![Version: 6.4.1](https://img.shields.io/badge/Version-6.4.1-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) Cloudnative-pg Cluster diff --git a/charts/postgres-cluster/templates/_bootstrap.tpl b/charts/postgres-cluster/templates/_bootstrap.tpl index e51351c..fa5027b 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -131,6 +131,7 @@ externalClusters: - name: {{ include "cluster.recoveryServerName" . }} plugin: name: barman-cloud.cloudnative-pg.io + enabled: true parameters: barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}" serverName: {{ include "cluster.recoveryServerName" . }} diff --git a/charts/postgres-cluster/templates/_helpers.tpl b/charts/postgres-cluster/templates/_helpers.tpl index 40306bf..1ff66bd 100644 --- a/charts/postgres-cluster/templates/_helpers.tpl +++ b/charts/postgres-cluster/templates/_helpers.tpl @@ -80,7 +80,7 @@ Generate recovery server name {{- if .Values.recovery.recoveryServerName -}} {{- .Values.recovery.recoveryServerName -}} {{- else -}} - {{- printf "%s-backup-%s" (include "cluster.name" .) (toString .Values.recovery.recoveryIndex) | trunc 63 | trimSuffix "-" -}} + {{- printf "%s-backup-%s" (include "cluster.name" .) (toString .Values.recovery.objectStore.index) | trunc 63 | trimSuffix "-" -}} {{- end }} {{- end }} diff --git a/charts/postgres-cluster/templates/cluster.yaml b/charts/postgres-cluster/templates/cluster.yaml index b5bbdb5..c01f621 100644 --- a/charts/postgres-cluster/templates/cluster.yaml +++ b/charts/postgres-cluster/templates/cluster.yaml @@ -24,6 +24,7 @@ spec: {{ end }} {{- range $objectStore := .Values.backup.objectStore }} - name: barman-cloud.cloudnative-pg.io + enabled: true isWALArchiver: {{ $objectStore.isWALArchiver | default true }} parameters: barmanObjectName: "{{ include "cluster.name" $ }}-{{ $objectStore.name }}-backup" @@ -35,6 +36,7 @@ spec: {{- end }} {{ if eq .Values.recovery.method "objectStore" }} - name: barman-cloud.cloudnative-pg.io + enabled: true parameters: barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}" serverName: {{ include "cluster.recoveryServerName" . }}