title: Set ConfigMap values directly from values.yaml in helm
body: <p>I am trying to build ConfigMap data directly from values.yaml in helm</p>
  <p>My Values.yaml</p>
  <pre><code>myconfiguration: |-
  key1: &gt;
    { &quot;Project&quot; : &quot;This is config1 test&quot;
    }
  key2 : &gt;
    {
      &quot;Project&quot; : &quot;This is config2 test&quot;
    }
  </code></pre>
  <p>And the configMap</p>
  <pre><code>apiVersion: v1
  kind: ConfigMap
  metadata:
    name: poc-secrets-configmap-{{ .Release.Namespace }}
  data:
  {{.Values.myconfiguration | indent 1}} 
  </code></pre>
  <p>But the data is empty when checked on the pod</p>
  <pre><code>Name:         poc-secrets-configmap-xxx
  Namespace:    xxx
  Labels:       app.kubernetes.io/managed-by=Helm
  Annotations:  meta.helm.sh/release-name: poc-secret-xxx
                meta.helm.sh/release-namespace: xxx
  
  Data
  ====
  Events:  &lt;none&gt;
  </code></pre>
  <p>Can anyone suggest</p>