Compare commits

...

2 Commits

Author SHA1 Message Date
1ac9444bb2 fix condition flow 2024-12-21 23:29:50 -06:00
275fcd8568 use cluster values 2024-12-21 23:26:40 -06:00
3 changed files with 4 additions and 11 deletions

View File

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

View File

@@ -37,11 +37,10 @@ bootstrap:
{{- end }} {{- end }}
{{- else if eq .Values.mode "replica" }} {{- else if eq .Values.mode "replica" }}
initdb: initdb:
{{- with .Values.replica.importDatabaseName }} {{- with .Values.cluster.initdb }}
database: {{ . }} {{- with (omit . "postInitApplicationSQL") }}
{{- . | toYaml | nindent 4 }}
{{- end }} {{- end }}
{{- with .Values.replica.importOwner }}
owner: {{ . }}
{{- end }} {{- end }}
import: import:
type: {{ .Values.replica.importType }} type: {{ .Values.replica.importType }}

View File

@@ -139,12 +139,6 @@ 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: []