AETHER-572 Expose prometheus exporter ports for OMEC control plane services
Change-Id: I8a726b94f2bd958a814d229e182d6cf7f1f6feed
diff --git a/omec/omec-control-plane/templates/configmap-hss.yaml b/omec/omec-control-plane/templates/configmap-hss.yaml
index 7e2dc5d..8e9c06a 100644
--- a/omec/omec-control-plane/templates/configmap-hss.yaml
+++ b/omec/omec-control-plane/templates/configmap-hss.yaml
@@ -13,6 +13,7 @@
{{- $hssJsonCommon := index $hssJson "common" }}
{{- $hssJsonHss := index $hssJson "hss" }}
+{{- $_ := .Values.config.hss.prometheus.port | set $hssJsonCommon "prom_port" -}}
{{- if not (hasKey $hssJsonCommon "originhost") -}}
{{- $_ := tuple "hss" "identity" . | include "omec-control-plane.diameter_endpoint" | set $hssJsonCommon "originhost" -}}
{{- end }}
@@ -97,6 +98,7 @@
hss-bootstrap.sh: |
{{ tuple "bin/_hss-bootstrap.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
{{- range $key, $value := .Values.config.hss.cfgFiles }}
- {{ $key }}: {{ toJson $value | quote }}
+ {{ $key }}: |-
+{{ toPrettyJson $value | indent 4 }}
{{- end }}
{{- end }}