[EDGEPOD-188] Update mme-exporter chart to be able to set TAC/name with configmap
Change-Id: Ie9b7d622fb948e66b0b5a3768cfba63d49609390
diff --git a/omec/omec-control-plane/Chart.yaml b/omec/omec-control-plane/Chart.yaml
index 7e2589c..daec2a2 100644
--- a/omec/omec-control-plane/Chart.yaml
+++ b/omec/omec-control-plane/Chart.yaml
@@ -19,4 +19,4 @@
name: omec-control-plane
icon: https://guide.opencord.org/logos/cord.svg
-version: 0.1.20
+version: 0.1.21
diff --git a/omec/omec-control-plane/templates/bin/_mme-init.sh.tpl b/omec/omec-control-plane/templates/bin/_mme-init.sh.tpl
index 10bfde5..76948b7 100644
--- a/omec/omec-control-plane/templates/bin/_mme-init.sh.tpl
+++ b/omec/omec-control-plane/templates/bin/_mme-init.sh.tpl
@@ -43,6 +43,7 @@
cp /opt/mme/config/shared/config.json /opt/mme/config/shared/s1ap.json
cp /opt/mme/config/shared/config.json /opt/mme/config/shared/s6a.json
cp /opt/mme/config/s6a_fd.conf /opt/mme/config/shared/s6a_fd.conf
+cp /opt/mme/config/mme_exporter.json /opt/mme/config/shared/mme_exporter.json
#This multiple copies of config needs some cleanup. For now I want
#that after running mme_init config to be present in the target directory
diff --git a/omec/omec-control-plane/templates/statefulset-mme.yaml b/omec/omec-control-plane/templates/statefulset-mme.yaml
index 40e3d57..71cf8a1 100644
--- a/omec/omec-control-plane/templates/statefulset-mme.yaml
+++ b/omec/omec-control-plane/templates/statefulset-mme.yaml
@@ -222,12 +222,17 @@
privileged: true
command: ["bash", "-xc"]
args:
- - until [ -e /tmp/unix_socket ]; do sleep 1; done; chmod 777 /tmp/unix_socket; while true; do python3 monitor_client.py; sleep 1; done
+ - cp /opt/mme/config/shared/mme_exporter.json /openmme/conf/mme_exporter.json;
+ until [ -e /tmp/unix_socket ]; do sleep 1; done;
+ chmod 777 /tmp/unix_socket;
+ while true; do python3 monitor_client.py; sleep 1; done;
{{- if .Values.resources.enabled }}
resources:
{{ toYaml .Values.resources.mme | indent 10 }}
{{- end }}
volumeMounts:
+ - name: shared-data
+ mountPath: /opt/mme/config/shared
- name: shared-app
mountPath: /tmp
{{- end }}
diff --git a/omec/omec-control-plane/values.yaml b/omec/omec-control-plane/values.yaml
index 0762fc0..569dd09 100644
--- a/omec/omec-control-plane/values.yaml
+++ b/omec/omec-control-plane/values.yaml
@@ -19,7 +19,7 @@
hssdb: docker.io/omecproject/c3po-hssdb:1.0.0
hss: docker.io/omecproject/c3po-hss:1.0.0
mme: docker.io/omecproject/openmme:1.0.0
- mmeExporter: docker.io/omecproject/mme-exporter:0.1.0
+ mmeExporter: docker.io/omecproject/mme-exporter:0.1.1
spgwc: docker.io/omecproject/ngic-cp:1.1.0
depCheck: quay.io/stackanetes/kubernetes-entrypoint:v0.3.1
pullPolicy: IfNotPresent
@@ -223,6 +223,17 @@
# host and realm will be set dynamically if unset
#host:
#realm:
+ mme_exporter.json:
+ edges:
+ - id: onf-menlo-b48-1
+ tac: 202
+ edgeName: edge-onf-menlo
+ - id: intel-hillsboro-b48-1
+ tac: 101
+ edgeName: edge-intel-hillsboro
+ - id: onf-menlo-b7-1
+ tac: 17
+ edgeName: edge-onf-menlo
spgwc:
apn: apn1
ueIpPool: