aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/pdp/templates/statefulset.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-01 00:46:48 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-01 02:08:27 +0200
commite0784a99d0f45494d1524bd5cea4d979d57a7618 (patch)
tree7108cd5bcae4d9bf4f571f8892dbb736e79cebce /kubernetes/policy/charts/pdp/templates/statefulset.yaml
parent02adcb74d77ece36662834ade0f970f597214c1c (diff)
[POLICY] Use common secret template in pdp
Use common secret template in pdp 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: I7e2304a79e0c92b5e7e32170135fd59769a21899
Diffstat (limited to 'kubernetes/policy/charts/pdp/templates/statefulset.yaml')
-rw-r--r--kubernetes/policy/charts/pdp/templates/statefulset.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/pdp/templates/statefulset.yaml b/kubernetes/policy/charts/pdp/templates/statefulset.yaml
index 127c400c12..16d5fb5cec 100644
--- a/kubernetes/policy/charts/pdp/templates/statefulset.yaml
+++ b/kubernetes/policy/charts/pdp/templates/statefulset.yaml
@@ -58,6 +58,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 }}
resources:
{{ include "common.resources" . | indent 12 }}
ports: