[DCAEGEN2] Fix configmap mounting 95/119495/3
authorMichal Banka <michal.banka@nokia.com>
Thu, 18 Mar 2021 12:09:19 +0000 (13:09 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 22 Mar 2021 17:48:11 +0000 (17:48 +0000)
Removed 'subPath' field which blocks reloading mounted
file when Configmap changes.

Signed-off-by: Michal Banka <michal.banka@nokia.com>
Change-Id: I78614e06542392a7c39cd650fd5ae1f98108c365
Issue-ID: DCAEGEN2-2576

kubernetes/dcaegen2/components/dcae-ves-openapi-manager/templates/deployment.yaml
kubernetes/dcaegen2/components/dcae-ves-openapi-manager/values.yaml

index b244d91..929b380 100644 (file)
@@ -51,8 +51,7 @@ spec:
               value: {{ .Values.schemaMap.directory }}/{{ .Values.schemaMap.filename }}
           volumeMounts:
             - name: schema-map
-              mountPath: {{ .Values.schemaMap.directory }}/{{ .Values.schemaMap.filename }}
-              subPath: {{ .Values.schemaMap.filename }}
+              mountPath: {{ .Values.schemaMap.directory }}
       volumes:
         - name: schema-map
           configMap:
index 66978bd..2209feb 100644 (file)
@@ -31,7 +31,7 @@ externalServices:
 
 schemaMap:
   filename: "schema-map.json"
-  directory: "/app"
+  directory: "/app/mappings"
 
 liveness:
   initialDelaySeconds: 30