Skip to content

Commit

Permalink
Fix indentation of externalClusters
Browse files Browse the repository at this point in the history
Signed-off-by: Pieter van der Giessen <[email protected]>
  • Loading branch information
Pionerd committed Apr 9, 2024
1 parent 37b085f commit fa5be43
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions charts/cluster/templates/_bootstrap.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,35 @@ bootstrap:
pg_basebackup:
source: {{ .Values.recovery.pgBaseBackup.sourceName }}

externalClusters:
- name: {{ .Values.recovery.pgBaseBackup.sourceName }}
connectionParameters:
host: {{ .Values.recovery.pgBaseBackup.sourceHost }}
user: {{ .Values.recovery.pgBaseBackup.sourceUsername }}
{{- if .Values.recovery.pgBaseBackup.TLS.enabled }}
sslmode: verify-full
{{- end }}
{{- if or .Values.recovery.pgBaseBackup.sourcePassword .Values.recovery.pgBaseBackup.existingPasswordSecret }}
password:
{{- if .Values.recovery.pgBaseBackup.sourcePassword }}
name: {{ include "cluster.fullname" . }}-source-db-password
{{- else }}
name: {{ .Values.recovery.pgBaseBackup.existingPasswordSecret }}
{{- end }}
key: password
{{- else if .Values.recovery.pgBaseBackup.TLS.enabled }}
sslKey:
name: {{ .Values.recovery.pgBaseBackup.TLS.sslKey.secretName }}
key: {{ .Values.recovery.pgBaseBackup.TLS.sslKey.key }}
sslCert:
name: {{ .Values.recovery.pgBaseBackup.TLS.sslCert.secretName }}
key: {{ .Values.recovery.pgBaseBackup.TLS.sslCert.key }}
sslRootCert:
name: {{ .Values.recovery.pgBaseBackup.TLS.sslRootCert.secretName }}
key: {{ .Values.recovery.pgBaseBackup.TLS.sslRootCert.key }}
externalClusters:
- name: {{ .Values.recovery.pgBaseBackup.sourceName }}
connectionParameters:
host: {{ .Values.recovery.pgBaseBackup.sourceHost }}
user: {{ .Values.recovery.pgBaseBackup.sourceUsername }}
{{- if .Values.recovery.pgBaseBackup.TLS.enabled }}
sslmode: verify-full
{{- end }}
{{- if or .Values.recovery.pgBaseBackup.sourcePassword .Values.recovery.pgBaseBackup.existingPasswordSecret }}
password:
{{- if .Values.recovery.pgBaseBackup.sourcePassword }}
name: {{ include "cluster.fullname" . }}-source-db-password
{{- else }}
{{ fail "No password or TLS secret defined for pg_basebackup" }}
name: {{ .Values.recovery.pgBaseBackup.existingPasswordSecret }}
{{- end }}
key: password
{{- else if .Values.recovery.pgBaseBackup.TLS.enabled }}
sslKey:
name: {{ .Values.recovery.pgBaseBackup.TLS.sslKey.secretName }}
key: {{ .Values.recovery.pgBaseBackup.TLS.sslKey.key }}
sslCert:
name: {{ .Values.recovery.pgBaseBackup.TLS.sslCert.secretName }}
key: {{ .Values.recovery.pgBaseBackup.TLS.sslCert.key }}
sslRootCert:
name: {{ .Values.recovery.pgBaseBackup.TLS.sslRootCert.secretName }}
key: {{ .Values.recovery.pgBaseBackup.TLS.sslRootCert.key }}
{{- else }}
{{ fail "No password or TLS secret defined for pg_basebackup" }}
{{- end }}

{{- else }}
recovery:
Expand Down

0 comments on commit fa5be43

Please sign in to comment.