add option to specifiy database name for replica

This commit is contained in:
2024-12-21 22:20:03 -06:00
parent e0e4f6ee8a
commit b75721ae1d
2 changed files with 6 additions and 1 deletions

View File

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

View File

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