diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index ef848a1..2411ef4 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 6.3.2 +version: 6.4.0 description: Cloudnative-pg Cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index 3af08af..b99dad4 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 6.3.2](https://img.shields.io/badge/Version-6.3.2-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) +![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) Cloudnative-pg Cluster diff --git a/charts/postgres-cluster/templates/cluster.yaml b/charts/postgres-cluster/templates/cluster.yaml index 87204a2..b5bbdb5 100644 --- a/charts/postgres-cluster/templates/cluster.yaml +++ b/charts/postgres-cluster/templates/cluster.yaml @@ -27,11 +27,17 @@ spec: isWALArchiver: {{ $objectStore.isWALArchiver | default true }} parameters: barmanObjectName: "{{ include "cluster.name" $ }}-{{ $objectStore.name }}-backup" + {{- if $objectStore.clusterName }} + serverName: "{{ $objectStore.clusterName }}-backup-{{ $objectStore.index }}" + {{- else }} + serverName: "{{ include "cluster.name" $ }}-backup-{{ $objectStore.index }}" + {{- end }} {{- end }} {{ if eq .Values.recovery.method "objectStore" }} - name: barman-cloud.cloudnative-pg.io parameters: barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}" + serverName: {{ include "cluster.recoveryServerName" . }} {{ end }} storage: size: {{ .Values.cluster.storage.size }} diff --git a/charts/postgres-cluster/templates/object-store.yaml b/charts/postgres-cluster/templates/object-store.yaml index 69e3267..56b9b96 100644 --- a/charts/postgres-cluster/templates/object-store.yaml +++ b/charts/postgres-cluster/templates/object-store.yaml @@ -19,11 +19,6 @@ spec: name: {{ .endpointCA.name }} key: {{ .endpointCA.key }} {{- end }} - {{- if .clusterName }} - serverName: "{{ .clusterName }}-backup-{{ .index }}" - {{- else }} - serverName: "{{ include "cluster.name" $context }}-backup-{{ .index }}" - {{- end }} {{- if .wal }} wal: compression: {{ .wal.compression | default "snappy" }} @@ -76,7 +71,6 @@ spec: name: {{ .Values.recovery.objectStore.endpointCA.name }} key: {{ .Values.recovery.objectStore.endpointCA.key }} {{- end }} - serverName: {{ include "cluster.recoveryServerName" . }} wal: compression: {{ .Values.recovery.objectStore.wal.compression }} {{- with .Values.recovery.objectStore.wal.encryption}}