fix minior bug that creates invalid kong DANM dannotation
[it/dep.git] / ric-aux / helm / infrastructure / subcharts / kong / charts / postgresql / templates / extended-config-configmap.yaml
1 {{- if and (or (.Files.Glob "files/conf.d/*.conf") .Values.postgresqlExtendedConf) (not .Values.extendedConfConfigMap)}}
2 apiVersion: v1
3 kind: ConfigMap
4 metadata:
5   name: {{ template "postgresql.fullname" . }}-extended-configuration
6   labels:
7     app: {{ template "postgresql.name" . }}
8     chart: {{ template "postgresql.chart" . }}
9     release: {{ .Release.Name | quote }}
10     heritage: {{ .Release.Service | quote }}
11 data:
12 {{- with .Files.Glob "files/conf.d/*.conf" }}
13 {{ .AsConfig | indent 2 }}
14 {{- end }}
15 {{ with .Values.postgresqlExtendedConf }}
16   override.conf: |
17 {{- range $key, $value := . }}
18     {{ $key | snakecase }}={{ $value }}
19 {{- end }}
20 {{- end }}
21 {{- end }}