Merge "[DCAEGEN2] Ves-open-api Add mech to load config at deploy time"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-ves-openapi-manager / templates / deployment.yaml
index a2c1545..2565839 100644 (file)
@@ -58,6 +58,8 @@ spec:
           volumeMounts:
             - name: schema-map
               mountPath: {{ .Values.schemaMap.directory }}
+            - name: app-config
+              mountPath: /app/config/
       serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
         - name: schema-map
@@ -67,5 +69,10 @@ spec:
             items:
               - key: {{ .Values.schemaMap.filename }}
                 path: {{ .Values.schemaMap.filename }}
+        - name: app-config
+          configMap:
+            name: {{ include "common.fullname" . }}-application-config-configmap
+            defaultMode: 420
+            optional: true
       imagePullSecrets:
-      - name: "{{ include "common.namespace" . }}-docker-registry-key"
\ No newline at end of file
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"