/
githubmirror
/
charts
Обзор
Документация
Войти
/
githubmirror
/
charts
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
stable/postgresql/templates/initialization-configmap.yaml
24 строки
824 B
Ivan Shapovalov
[stable/postgresql] Fix `initdbScripts`; add `postgresqlExtendedConf` to pass appended configuration via values (#10294)
04 янв 2019, 10:33
04 янв 2019, 10:33
f759be6
Код
Авторство
О чём код?
{{- if and (or (.Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql,sql.gz}") .Values.initdbScripts) (not .Values.initdbScriptsConfigMap) }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "postgresql.fullname" . }}-init-scripts labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- with .Files.Glob "files/docker-entrypoint-initdb.d/*.sql.gz" }} binaryData: {{- range $path, $bytes := . }} {{ base $path }}: {{ $.Files.Get $path | b64enc | quote }} {{- end }} {{- end }} data: {{- with .Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql}" }} {{ .AsConfig | indent 2 }} {{- end }} {{- with .Values.initdbScripts }} {{ toYaml . | indent 2 }} {{- end }} {{- end }}