First draft of the SMO package based on the ONAP charts
[it/dep.git] / smo-install / oran_oom / ru-simulator / templates / configmap.yaml
diff --git a/smo-install/oran_oom/ru-simulator/templates/configmap.yaml b/smo-install/oran_oom/ru-simulator/templates/configmap.yaml
new file mode 100644 (file)
index 0000000..14fe746
--- /dev/null
@@ -0,0 +1,15 @@
+{{ $currentScope := .}}
+{{- range $i, $ru := .Values.rus }}
+  {{- $_ := set $ "ru" $ru }}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: {{ $ru.name }}-configmap
+  labels:
+    sim-name: {{ $ru.name }}
+    release: {{ $.Release.Name }}
+    chart: {{ $.Chart.Name }}
+data:
+{{ tpl ($.Files.Glob "resources/config/*.{json,xml}").AsConfig $ | indent 2 }}
+{{- end }}