diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-03-05 13:26:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-05 13:26:34 +0000 |
commit | ccc34974cc52d99d11c82f1e9f271d2e012a5c36 (patch) | |
tree | 5869eb05cf4990bd26049d61538630eec04a5fba /kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml | |
parent | be6cc48ea7f22047178fcadabcc0a74938ddd770 (diff) | |
parent | 42f027f6782421062893cec1d20b63e90bd3f7c7 (diff) |
Merge "[SO] Use common secret template in so-bpmn-infra"
Diffstat (limited to 'kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml')
-rwxr-xr-x | kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml b/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml index 91e9be6376..1a2d7f7e0b 100755 --- a/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml +++ b/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml @@ -66,26 +66,14 @@ spec: name: {{ include "common.release" . }}-so-db-secrets key: mariadb.readwrite.port - name: DB_USERNAME - valueFrom: - secretKeyRef: - name: {{ include "common.release" . }}-so-db-secrets - key: mariadb.readwrite.rolename + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }} - name: DB_PASSWORD - valueFrom: - secretKeyRef: - name: {{ include "common.release" . }}-so-db-secrets - key: mariadb.readwrite.password + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }} - name: DB_ADMIN_USERNAME - valueFrom: - secretKeyRef: - name: {{ include "common.release" . }}-so-db-secrets - key: mariadb.admin.rolename + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 10 }} - name: DB_ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: {{ include "common.release" . }}-so-db-secrets - key: mariadb.admin.password - {{- if eq .Values.global.security.aaf.enabled true }} + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 10 }} + {{- if eq .Values.global.security.aaf.enabled true }} - name: TRUSTSTORE value: /app/org.onap.so.trust.jks - name: TRUSTSTORE_PASSWORD |