AETHER-1361 Fix restart fails when mounted configmap with subpath modified
Also removed unnecessary environment variables for gx-app container
Change-Id: I10c87fa4e7c0795a7c2f788cce6e81f212b78a76
diff --git a/omec/omec-control-plane/templates/statefulset-mme.yaml b/omec/omec-control-plane/templates/statefulset-mme.yaml
index c0c180c..c0b6e82 100644
--- a/omec/omec-control-plane/templates/statefulset-mme.yaml
+++ b/omec/omec-control-plane/templates/statefulset-mme.yaml
@@ -96,8 +96,7 @@
fieldPath: status.podIP
volumeMounts:
- name: scripts
- mountPath: /opt/mme/scripts/mme-init.sh
- subPath: mme-init.sh
+ mountPath: /opt/mme/scripts
- name: configs
mountPath: /opt/mme/config
- name: shared-data
@@ -130,8 +129,7 @@
value: "container"
volumeMounts:
- name: scripts
- mountPath: /opt/mme/scripts/mme-run.sh
- subPath: mme-run.sh
+ mountPath: /opt/mme/scripts
- name: shared-data
mountPath: /opt/mme/config/shared
- name: shared-app
@@ -162,8 +160,7 @@
value: "container"
volumeMounts:
- name: scripts
- mountPath: /opt/mme/scripts/mme-run.sh
- subPath: mme-run.sh
+ mountPath: /opt/mme/scripts
- name: shared-data
mountPath: /opt/mme/config/shared
- name: shared-app
@@ -194,8 +191,7 @@
value: "container"
volumeMounts:
- name: scripts
- mountPath: /opt/mme/scripts/mme-run.sh
- subPath: mme-run.sh
+ mountPath: /opt/mme/scripts
- name: shared-data
mountPath: /opt/mme/config/shared
- name: shared-app
@@ -224,8 +220,7 @@
value: "container"
volumeMounts:
- name: scripts
- mountPath: /opt/mme/scripts/mme-run.sh
- subPath: mme-run.sh
+ mountPath: /opt/mme/scripts
- name: shared-data
mountPath: /opt/mme/config/shared
- name: shared-app
@@ -237,11 +232,11 @@
volumes:
- name: scripts
configMap:
- name: mme
+ name: mme-scripts
defaultMode: 493
- name: configs
configMap:
- name: mme
+ name: mme-configs
defaultMode: 420
- name: shared-data
emptyDir: {}