diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 3c71c64..7ae84d4 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 2.0.0 +version: 2.1.0 description: Chart for cloudnative-pg cluster keywords: - database diff --git a/charts/postgres-cluster/templates/_helpers.tpl b/charts/postgres-cluster/templates/_helpers.tpl index 35c77bd..0d92486 100644 --- a/charts/postgres-cluster/templates/_helpers.tpl +++ b/charts/postgres-cluster/templates/_helpers.tpl @@ -45,7 +45,7 @@ Generate name for object store credentials {{- if .Values.recovery.endpointCredentials -}} {{- .Values.recovery.endpointCredentials -}} {{- else -}} - {{- printf "postgresql-%s-cluster-backup-secret" .Release.Name | trunc 63 | trimSuffix "-" -}} + {{- printf "%s-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-" -}} {{- end }} {{- end }} @@ -53,7 +53,7 @@ Generate name for object store credentials {{- if .Values.backup.endpointCredentials -}} {{- .Values.backup.endpointCredentials -}} {{- else -}} - {{- printf "postgresql-%s-cluster-backup-secret" .Release.Name | trunc 63 | trimSuffix "-" -}} + {{- printf "%s-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-" -}} {{- end }} {{- end }}