summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/drools
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2019-10-25 00:05:36 -0500
committerjhh <jorge.hernandez-herrero@att.com>2019-10-25 00:07:44 -0500
commit7ade5b8aa8f8ff6af7fb44fd2e9511d974c14598 (patch)
treebc592e13551b026ca5e9e5bec60d8184563b28b8 /kubernetes/policy/charts/drools
parentbfc7fe22f3bc058639c2f90633970b18e3101ef2 (diff)
policy helm changes to override of cert store
Issue-ID: POLICY-2064 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I5d9c6b8ea7e13b43b900f07d394b0bc5fb4b0c9f
Diffstat (limited to 'kubernetes/policy/charts/drools')
-rw-r--r--kubernetes/policy/charts/drools/resources/configmaps/base.conf4
-rw-r--r--kubernetes/policy/charts/drools/templates/configmap.yaml8
2 files changed, 11 insertions, 1 deletions
diff --git a/kubernetes/policy/charts/drools/resources/configmaps/base.conf b/kubernetes/policy/charts/drools/resources/configmaps/base.conf
index 99c7f9b73d..22c7d8da6d 100644
--- a/kubernetes/policy/charts/drools/resources/configmaps/base.conf
+++ b/kubernetes/policy/charts/drools/resources/configmaps/base.conf
@@ -57,6 +57,10 @@ PDPD_CONFIGURATION_PARTITION_KEY=
POLICY_PDP_PAP_TOPIC=POLICY-PDP-PAP
+# Symmetric Key for encoded sensitive data
+
+SYMM_KEY=
+
# PAP
PAP_HOST=policy-pap
diff --git a/kubernetes/policy/charts/drools/templates/configmap.yaml b/kubernetes/policy/charts/drools/templates/configmap.yaml
index 7daf473db2..9a92ad9769 100644
--- a/kubernetes/policy/charts/drools/templates/configmap.yaml
+++ b/kubernetes/policy/charts/drools/templates/configmap.yaml
@@ -18,5 +18,11 @@ kind: ConfigMap
metadata:
name: {{ include "common.fullname" . }}-configmap
namespace: {{ include "common.namespace" . }}
+{{- with .Files.Glob "resources/configmaps/*{.zip,store}" }}
+binaryData:
+{{- range $path, $bytes := . }}
+ {{ base $path }}: {{ $.Files.Get $path | b64enc | quote }}
+{{- end }}
+{{- end }}
data:
-{{ tpl (.Files.Glob "resources/configmaps/*").AsConfig . | indent 2 }}
+{{ tpl (.Files.Glob "resources/configmaps/*.{conf,sh,properties,xml,keyfile}").AsConfig . | indent 2 }}