Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Migrate oom docs"
[oom.git]
/
kubernetes
/
policy
/
charts
/
drools
/
templates
/
configmap.yaml
diff --git
a/kubernetes/policy/charts/drools/templates/configmap.yaml
b/kubernetes/policy/charts/drools/templates/configmap.yaml
index
1f95031
..
9a92ad9
100644
(file)
--- 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" . }}
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:
data:
-{{ tpl (.Files.Glob "resources/config
/opt/policy/config/drools/*
").AsConfig . | indent 2 }}
+{{ tpl (.Files.Glob "resources/config
maps/*.{conf,sh,properties,xml,keyfile}
").AsConfig . | indent 2 }}