From cb29afdcb281046214f04327110286f51ff13941 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Thu, 18 Apr 2024 05:35:06 -0600 Subject: [PATCH] fix source server naming --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index ba5b2c7..e851f11 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -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 diff --git a/charts/postgres-cluster/templates/_helpers.tpl b/charts/postgres-cluster/templates/_helpers.tpl index 401bf76..d766ace 100644 --- a/charts/postgres-cluster/templates/_helpers.tpl +++ b/charts/postgres-cluster/templates/_helpers.tpl @@ -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 }}