Skip to content

Commit 975b325

Browse files
committed
feat(documentdb): Configure pg_cron database parameter
Signed-off-by: P-Louw <[email protected]>
1 parent 0f6d22c commit 975b325

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

charts/cluster/templates/cluster.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,14 @@ spec:
9797
synchronous:
9898
{{- toYaml . | nindent 6 }}
9999
{{ end }}
100-
{{- with .Values.cluster.postgresql.parameters }}
100+
{{- if or (eq .Values.type "documentdb") .Values.cluster.postgresql.parameters }}
101101
parameters:
102+
{{- if eq .Values.type "documentdb" }}
103+
cron.database_name: {{ .Values.cluster.initdb.database | default "app" | quote }}
104+
{{- end }}
105+
{{- with .Values.cluster.postgresql.parameters }}
102106
{{- toYaml . | nindent 6 }}
107+
{{- end }}
103108
{{- end }}
104109

105110
{{- if not (and (empty .Values.cluster.roles) (empty .Values.cluster.services)) }}

0 commit comments

Comments
 (0)