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-hss.yaml b/omec/omec-control-plane/templates/statefulset-hss.yaml
index 7c4c4a6..11ce47c 100644
--- a/omec/omec-control-plane/templates/statefulset-hss.yaml
+++ b/omec/omec-control-plane/templates/statefulset-hss.yaml
@@ -45,11 +45,10 @@
- name: hss-bootstrap
image: {{ .Values.images.tags.hssdb }}
imagePullPolicy: {{ .Values.images.pullPolicy }}
- command: ["/opt/c3po/hss/hss-bootstrap.sh"]
+ command: ["/opt/c3po/hss/scripts/hss-bootstrap.sh"]
volumeMounts:
- - name: hss-script
- mountPath: /opt/c3po/hss/hss-bootstrap.sh
- subPath: hss-bootstrap.sh
+ - name: scripts
+ mountPath: /opt/c3po/hss/scripts
{{- if .Values.config.coreDump.enabled }}
{{ tuple "hss" . | include "omec-control-plane.coredump_init" | indent 6 }}
{{- end }}
@@ -64,29 +63,28 @@
{{- end }}
stdin: true
tty: true
- command: ["bash", "-c", "/opt/c3po/hss/hss-run.sh; sleep 3600"]
+ command: ["bash", "-c", "/opt/c3po/hss/scripts/hss-run.sh; sleep 3600"]
{{- if .Values.resources.enabled }}
resources:
{{ toYaml .Values.resources.hss | indent 10 }}
{{- end }}
volumeMounts:
- - name: hss-script
- mountPath: /opt/c3po/hss/hss-run.sh
- subPath: hss-run.sh
- - name: hss-config
+ - name: scripts
+ mountPath: /opt/c3po/hss/scripts
+ - name: configs
mountPath: /etc/hss/conf
{{- if .Values.config.coreDump.enabled }}
- name: coredump
mountPath: /tmp/coredump
{{- end }}
volumes:
- - name: hss-script
+ - name: scripts
configMap:
- name: hss
+ name: hss-scripts
defaultMode: 493
- - name: hss-config
+ - name: configs
configMap:
- name: hss
+ name: hss-configs
defaultMode: 420
{{- if .Values.config.coreDump.enabled }}
- name: host-rootfs