add option to specifiy database name for replica
This commit is contained in:
@@ -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
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user