diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-04-01 00:21:45 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-04-01 02:05:31 +0200 |
commit | 7e31efc10b7c266374dae6b5f125d2b607f62cc2 (patch) | |
tree | ba1a6eecaa9270e0b09dec21f25702163fdff6e3 /kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml | |
parent | ddd1de41d3cc17ad53048bad2c81e2fc1757a5ea (diff) |
[POLICY] Use common secret template in policy-xacml
Use common secret template in policy-xacml module instead of hardcoding db
credentials in config map.
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: I3c78373d1b6cf6cdd94af03645e3d5af8704b942
Diffstat (limited to 'kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml')
-rw-r--r-- | kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml b/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml index 57e7c78218..5b02c177b5 100644 --- a/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml +++ b/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml @@ -37,6 +37,11 @@ spec: imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} command: ["/opt/app/policy/pdpx/bin/policy-pdpx.sh"] args: ["/opt/app/policy/pdpx/etc/mounted/config.json"] + env: + - name: SQL_USER + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }} + - name: SQL_PASSWORD + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }} ports: - containerPort: {{ .Values.service.internalPort }} # disable liveness probe when breakpoints set in debugger |