title: Kubernetes/Helm: any examples with ConfigMap and "binaryData:"?
body: <p>With Kubernetes 1.10.* we can use <code>binaryData:</code> with <code>ConfigMap</code> and I am trying to combine it with <code>Helm</code>:</p>
  
  <pre><code>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 }}
  </code></pre>
  
  <p>I am not sure about the last line - regardless of syntax:</p>
  
  <pre><code> {{ "truststores/trustore.jks" | b64enc }}
   {{ "truststores/trustore.jks" }}
  </code></pre>
  
  <p>the <code>trustore.jks</code> is empty when I deploy it.</p>
  
  <p>So how can I use <code>binaryData:</code> ?</p>