[PORTAL] Bug fixes in Helm charts 28/113428/4
authorSandeep Shah <sandeeplinux1068@gmail.com>
Thu, 1 Oct 2020 13:44:11 +0000 (08:44 -0500)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 2 Oct 2020 15:49:07 +0000 (15:49 +0000)
Bug fixes in deployment.yaml file for both
portal-app and sdk components

Issue-ID: OOM-2582
Signed-off-by: SandeepLinux <Sandeep.Shah@att.com>
Change-Id: I4123ca8f48f503170466f7a965696406c14635d6
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
kubernetes/portal/components/portal-app/templates/deployment.yaml
kubernetes/portal/components/portal-sdk/templates/deployment.yaml

index d61f876..8c434c5 100644 (file)
@@ -52,8 +52,23 @@ spec:
       - name: {{ include "common.name" . }}-portal-config
         image: "{{ .Values.global.envsubstImage }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
-        command: ["/bin/sh"]
-        args: [ "-c", "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"]
+        command:
+        - sh
+        args:
+        - "-c"
+        - |
+          cd /config-input && \
+          for PFILE in `ls -1 *.xml`
+          do
+            cp ${PFILE} /config
+            chmod 0755 /config/${PFILE}
+          done
+          cd /config-input && \
+          for PFILE in `ls -1 *.properties`
+          do
+            envsubst <${PFILE} >/config/${PFILE}
+            chmod 0755 /config/${PFILE}
+          done
         env:
           - name: CASSA_USER
             {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-cass" "key" "login") | indent 12 }}
index fabefde..52bf49b 100644 (file)
@@ -52,8 +52,23 @@ spec:
       - name: {{ include "common.name" . }}-portalsdk-config
         image: "{{ .Values.global.envsubstImage }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
-        command: ["/bin/sh"]
-        args: [ "-c", "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"]
+        command:
+        - sh
+        args:
+        - "-c"
+        - |
+          cd /config-input && \
+          for PFILE in `ls -1 *.xml`
+          do
+            cp ${PFILE} /config
+            chmod 0755 /config/${PFILE}
+          done
+          cd /config-input && \
+          for PFILE in `ls -1 *.properties`
+          do
+            envsubst <${PFILE} >/config/${PFILE}
+            chmod 0755 /config/${PFILE}
+          done
         env:
           - name: CASSA_USER
             {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-cass" "key" "login") | indent 12 }}