summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-01 00:28:14 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-01 02:07:51 +0200
commit44088f97e20a4e51e0355e23373f4c5c5227dade (patch)
treefbe8d6457031a53aefe06de6d68811c2e934054b /kubernetes/policy/charts/brmsgw/templates/deployment.yaml
parent02adcb74d77ece36662834ade0f970f597214c1c (diff)
[POLICY] Use common secret template in brmsgw
Use common secret template in brmsgw module to override DB credentials comming from policy-common For now db creds are hardcoded but will be remove in further commits. Issue-ID: OOM-2342 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Ic15afa9d65982d0ae3a535094f1e4b5f21758c82
Diffstat (limited to 'kubernetes/policy/charts/brmsgw/templates/deployment.yaml')
-rw-r--r--kubernetes/policy/charts/brmsgw/templates/deployment.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/brmsgw/templates/deployment.yaml b/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
index 2b2f383e6c..6ff76ddfd1 100644
--- a/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
+++ b/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
@@ -54,6 +54,11 @@ spec:
name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ env:
+ - name: JDBC_USER
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
+ - name: JDBC_PASSWORD
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
ports:
- containerPort: {{ .Values.service.externalPort }}
{{- if eq .Values.liveness.enabled true }}