summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/policy-xacml-pdp/values.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-01 00:21:45 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-01 02:05:31 +0200
commit7e31efc10b7c266374dae6b5f125d2b607f62cc2 (patch)
treeba1a6eecaa9270e0b09dec21f25702163fdff6e3 /kubernetes/policy/charts/policy-xacml-pdp/values.yaml
parentddd1de41d3cc17ad53048bad2c81e2fc1757a5ea (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/values.yaml')
-rw-r--r--kubernetes/policy/charts/policy-xacml-pdp/values.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/policy-xacml-pdp/values.yaml b/kubernetes/policy/charts/policy-xacml-pdp/values.yaml
index 5c062a0e7a..dc7266e9a1 100644
--- a/kubernetes/policy/charts/policy-xacml-pdp/values.yaml
+++ b/kubernetes/policy/charts/policy-xacml-pdp/values.yaml
@@ -23,6 +23,17 @@ global:
persistence: {}
#################################################################
+# Secrets metaconfig
+#################################################################
+secrets:
+ - uid: db-secret
+ type: basicAuth
+ externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}'
+ login: '{{ .Values.db.user }}'
+ password: '{{ .Values.db.password }}'
+ passwordPolicy: required
+
+#################################################################
# Application configuration defaults.
#################################################################
# application image
@@ -35,6 +46,10 @@ debugEnabled: false
# application configuration
+db:
+ user: policy_user
+ password: policy_user
+
# default number of instances
replicaCount: 1