Adding policy manager and a1 sdnc vth
[it/otf.git] / otf-helm / otf / charts / databases / charts / mongodb / templates / configmap.yaml
diff --git a/otf-helm/otf/charts/databases/charts/mongodb/templates/configmap.yaml b/otf-helm/otf/charts/databases/charts/mongodb/templates/configmap.yaml
new file mode 100644 (file)
index 0000000..eefbba9
--- /dev/null
@@ -0,0 +1,12 @@
+apiVersion: v1\r
+kind: ConfigMap\r
+metadata:\r
+  name : {{ .Values.global.mongodb.appName }}-init-scripts\r
+\r
+data:\r
+  {{- $files := .Files }}\r
+  {{- range $key, $value := .Files }}\r
+  {{- if hasPrefix "scripts/" $key }} {{/* only when in scripts/ */}}\r
+  {{ $key | trimPrefix "scripts/" }}: {{ $files.Get $key | quote }} {{/* adapt $key as desired */}}\r
+  {{- end }}\r
+  {{- end }}\r