Skip to content

Commit aed4f46

Browse files
committed
fix(recovery): Default recovery cluster server name
The `barmanObjectStore.serverName` for the recovery cluster was previously not explicitly defaulting. This change ensures that if `.Values.recovery.clusterName` is not provided, the `serverName` will automatically fall back to the full name of the current cluster. Signed-off-by: Enrique Hernández Bello <ehernandez@maarlab.com>
1 parent 6b5154b commit aed4f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/cluster/templates/_external_clusters.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ externalClusters:
1212
{{- if eq (include "cluster.useBarmanCloudPlugin" .) "false" }}
1313
- name: objectStoreRecoveryCluster
1414
barmanObjectStore:
15-
serverName: {{ .Values.recovery.clusterName }}
15+
serverName: {{ .Values.recovery.clusterName | default (include "cluster.fullname" .) }}
1616
{{- $d := dict "chartFullname" (include "cluster.fullname" .) "scope" .Values.recovery "secretPrefix" "recovery" -}}
1717
{{- include "cluster.barmanObjectStoreConfig" $d | nindent 4 }}
1818
{{- else }}

0 commit comments

Comments
 (0)