fix source server naming

This commit is contained in:
2024-04-18 05:35:06 -06:00
parent 4f366535c3
commit cb29afdcb2
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: postgres-cluster
version: 2.4.0
version: 2.4.1
description: Chart for cloudnative-pg cluster
keywords:
- database

View File

@@ -75,7 +75,7 @@ Generate recovery server name
{{- if .Values.recovery.recoveryServerName -}}
{{- .Values.recovery.recoveryServerName -}}
{{- else -}}
{{- printf "%s-backup-%s" (include "cluster.name" .) .Values.recovery.recoveryIndex | trunc 63 | trimSuffix "-" -}}
{{- printf "%s-backup-%s" (include "cluster.name" .) (toString .Values.recovery.recoveryIndex) | trunc 63 | trimSuffix "-" -}}
{{- end }}
{{- end }}