Merge "[DCAE] Add secrets as envs to application container in dcaegen2"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 28 May 2021 14:31:58 +0000 (14:31 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 28 May 2021 14:31:58 +0000 (14:31 +0000)
kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl

index 5de5262..4554b50 100644 (file)
@@ -274,6 +274,10 @@ spec:
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         name: {{ include "common.name" . }}
         env:
+        {{- range $cred := .Values.credentials }}
+        - name: {{ $cred.name }}
+          {{- include "common.secret.envFromSecretFast" (dict "global" $ "uid" $cred.uid "key" $cred.key) | indent 10 }}
+        {{- end }}
         {{- if $certDir }}
         - name: DCAE_CA_CERTPATH
           value: {{ $certDir }}/cacert.pem
@@ -317,6 +321,8 @@ spec:
         volumeMounts:
         - mountPath: /app-config
           name: app-config
+        - mountPath: /app-config-input
+          name: app-config-input
         {{- if $logDir }}
         - mountPath: {{ $logDir}}
           name: component-log