With Kubernetes 1.10.* we can use binaryData:
with ConfigMap
and I am trying to combine it with Helm
:
apiVersion: v1
kind: ConfigMap
metadata:
name: some_config_map
data:
text_data: |-
{{ .Files.Get "truststores/simple_text_file.txt" }}
binaryData:
trustore.jks: |-
{{ .Files.Get "truststores/trustore.jks" | b64enc }}
I am not sure about the last line - regardless of syntax:
{{ "truststores/trustore.jks" | b64enc }}
{{ "truststores/trustore.jks" }}
the trustore.jks
is empty when I deploy it.
So how can I use binaryData:
?