Config update support in MME #36

MME should have default config at error level set.
We should be able to use helm to update the config
level in the mme pod.

Change-Id: If6138bbe791d43fff1dc020599144d908f66fe8b
diff --git a/omec/omec-control-plane/Chart.yaml b/omec/omec-control-plane/Chart.yaml
index ba2eccf..62d8ca8 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.11
+version: 0.1.13
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 8df3f00..10bfde5 100644
--- a/omec/omec-control-plane/templates/bin/_mme-init.sh.tpl
+++ b/omec/omec-control-plane/templates/bin/_mme-init.sh.tpl
@@ -44,6 +44,10 @@
 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
 
+#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
+cp /opt/mme/config/shared/* /openmme/target/conf/
+
 # Generate certs
 MME_IDENTITY={{ tuple "mme" "identity" . | include "omec-control-plane.diameter_endpoint" | quote }};
 DIAMETER_HOST=$(echo $MME_IDENTITY | cut -d'.' -f1)
diff --git a/omec/omec-control-plane/templates/statefulset-mme.yaml b/omec/omec-control-plane/templates/statefulset-mme.yaml
index fbaf094..bb8b3c6 100644
--- a/omec/omec-control-plane/templates/statefulset-mme.yaml
+++ b/omec/omec-control-plane/templates/statefulset-mme.yaml
@@ -136,6 +136,8 @@
           subPath: mme-run.sh
         - name: shared-data
           mountPath: /opt/mme/config/shared
+        - name: configs
+          mountPath: /opt/mme/config
         - name: shared-app
           mountPath: /tmp
       - name: s1ap-app
diff --git a/omec/omec-control-plane/values.yaml b/omec/omec-control-plane/values.yaml
index 21f88f1..053fb94 100644
--- a/omec/omec-control-plane/values.yaml
+++ b/omec/omec-control-plane/values.yaml
@@ -197,6 +197,7 @@
           name: vmmestandalone
           group_id: 1
           code: 1
+          logging: error
           mcc:
             dig1: 2
             dig2: 0