Compare commits

...

2 Commits

Author SHA1 Message Date
d3307d4f70 use different function 2024-12-21 22:39:52 -06:00
1b7018d3bd fix database naming 2024-12-21 22:31:00 -06:00
2 changed files with 3 additions and 5 deletions

View File

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

View File

@@ -37,10 +37,8 @@ bootstrap:
{{- end }}
{{- else if eq .Values.mode "replica" }}
initdb:
{{- if .eq .Values.replica.importType "microservice" }}
{{- with index .Values.replica.importDatabases 0 }}
database: {{- . | quote }}
{{- end }}
{{- if eq .Values.replica.importType "microservice" }}
database: {{ first .Values.replica.importDatabases }}
{{- end }}
import:
type: {{ .Values.replica.importType }}