Skip to content

Commit 49c43b1

Browse files
committed
fix(charts): Ensure explicit empty externalClusters list for standalone mode
When the cluster is in 'standalone' mode, the 'externalClusters' key was rendered with an implicitly empty value. This commit explicitly defines 'externalClusters: []' for 'standalone' mode to ensure valid YAML and clarity. Additionally, the 'externalClusters:' key has been relocated within the 'recovery' and 'replica' mode blocks to maintain consistent YAML list formatting across all operational modes. Signed-off-by: Enrique Hernández Bello <ehernandez@maarlab.com>
1 parent f39d23b commit 49c43b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

charts/cluster/templates/_external_clusters.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{{- define "cluster.externalClusters" -}}
2-
externalClusters:
32
{{- if eq .Values.mode "standalone" }}
3+
externalClusters: []
44
{{- else if eq .Values.mode "recovery" }}
5+
externalClusters:
56
{{- if eq .Values.recovery.method "pg_basebackup" }}
67
- name: pgBaseBackupSource
78
{{- include "cluster.externalSourceCluster" .Values.recovery.pgBaseBackup.source | nindent 4 }}
@@ -16,6 +17,7 @@ externalClusters:
1617
{{- include "cluster.barmanObjectStoreConfig" $d | nindent 4 }}
1718
{{- end }}
1819
{{- else if eq .Values.mode "replica" }}
20+
externalClusters:
1921
- name: originCluster
2022
{{- if not (empty .Values.replica.origin.objectStore.provider) }}
2123
barmanObjectStore:

0 commit comments

Comments
 (0)