[DCEAGEN] Add app-config volume mount to common dceagen2 template 56/120756/9
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Wed, 21 Apr 2021 10:08:50 +0000 (12:08 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 29 Apr 2021 15:06:26 +0000 (15:06 +0000)
Mount volume containing app configuration to all deployments in dcaegen2

Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Issue-ID: DCAEGEN2-2692
Change-Id: I414c44633f7dd1b0a37b135e5cbc2f2111494a0b

kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl

index c03be83..e9ada4d 100644 (file)
@@ -180,8 +180,9 @@ spec:
           {{- end }}
         {{- end }}
         resources: {{ include "common.resources" . | nindent 2 }}
-        {{- if or $logDir $certDir  }}
         volumeMounts:
+        - mountPath: /app-config
+          name: app-config
         {{- if $logDir }}
         - mountPath: {{ $logDir}}
           name: component-log
@@ -190,7 +191,6 @@ spec:
         - mountPath: {{ $certDir }}
           name: tls-info
         {{- end }}
-        {{- end }}
       {{- if $logDir }}
       - image: {{ include "repositoryGenerator.image.logging" . }}
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}