blob: 456f8ee55e408b822316e6d5238915ff4ea33ede [file] [log] [blame]
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +04001{{- /*
2Copyright VMware, Inc.
3SPDX-License-Identifier: APACHE-2.0
4*/}}
5
6{{- if (include "postgresql.v1.primary.createExtendedConfigmap" .) }}
7apiVersion: v1
8kind: ConfigMap
9metadata:
10 name: {{ printf "%s-extended-configuration" (include "postgresql.v1.primary.fullname" .) }}
11 namespace: {{ .Release.Namespace | quote }}
12 labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13 app.kubernetes.io/component: primary
14 {{- if .Values.commonAnnotations }}
15 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
16 {{- end }}
17data:
18 override.conf: |-
19 {{- include "common.tplvalues.render" ( dict "value" .Values.primary.extendedConfiguration "context" $ ) | nindent 4 }}
20{{- end }}