34a854d9e0c74ab8f034746ed174a55f00da29a5
[it/otf.git] / otf-helm / otf / charts / databases / mongodb / templates / initialization-configmap.yaml
1 {{ if  (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js|json]") }}
2 apiVersion: v1
3 kind: ConfigMap
4 metadata:
5   name: {{ template "mongodb.fullname" . }}-init-scripts
6   namespace: {{.Values.namespace }}
7   labels:
8     app: {{ template "mongodb.name" . }}
9     chart: {{ template "mongodb.chart" . }}
10     release: {{ .Release.Name | quote }}
11     heritage: {{ .Release.Service | quote }}
12 data:
13 {{ tpl (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js|json]").AsConfig . | indent 2 }}
14 {{ end }}