Compare commits

...

3 Commits

Author SHA1 Message Date
158d4ca676 change method 2024-12-21 23:22:34 -06:00
32e232d8e2 force hardcoded value for testing 2024-12-21 23:08:17 -06:00
93d2f916fb use value for name 2024-12-21 22:53:59 -06:00
4 changed files with 14 additions and 2 deletions

View File

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

View File

@@ -37,7 +37,12 @@ bootstrap:
{{- end }} {{- end }}
{{- else if eq .Values.mode "replica" }} {{- else if eq .Values.mode "replica" }}
initdb: initdb:
database: {{ first .Values.replica.importDatabases }} {{- with .Values.replica.importDatabaseName }}
database: {{ . }}
{{- end }}
{{- with .Values.replica.importOwner }}
owner: {{ . }}
{{- end }}
import: import:
type: {{ .Values.replica.importType }} type: {{ .Values.replica.importType }}
databases: databases:

View File

@@ -60,4 +60,5 @@ spec:
enablePodMonitor: {{ and .Values.cluster.monitoring.enabled .Values.cluster.monitoring.podMonitor.enabled }} enablePodMonitor: {{ and .Values.cluster.monitoring.enabled .Values.cluster.monitoring.podMonitor.enabled }}
{{ include "cluster.bootstrap" . | nindent 2 }} {{ include "cluster.bootstrap" . | nindent 2 }}
{{ include "cluster.backup" . | nindent 2 }} {{ include "cluster.backup" . | nindent 2 }}

View File

@@ -139,6 +139,12 @@ replica:
importDatabases: importDatabases:
- app - app
# If type microservice select the name for the imported database.
importDatabaseName: app
# If type microservice select the name for the database owner.
importOwner: app
# If type microservice no roles are imported and ignored # If type microservice no roles are imported and ignored
importRoles: [] importRoles: []