title: Helm configmap error. expected string; got bool
body: <p>I have a Helm chart with has multiple templates. One is the configmap which was working fine.
  But when I want to add the enabled part I´m getting the error message.</p>
  <pre><code>executing &quot;base-helm-chart/templates/configmap.yaml&quot; at &lt;$config&gt;: wrong type for value; expected string; got bool
  </code></pre>
  <p>This are the files I´m using:</p>
  <pre><code>{{- if .Values.configMap.enabled }}
  apiVersion: v1
  kind: ConfigMap
  metadata:
    namespace: {{ .Release.Namespace }}
    name: {{include &quot;chart.fullname&quot; .}}
    labels: {{ include &quot;chart.labels&quot; . | nindent 4 }}
  data:
  {{- range $name, $config := .Values.configMap }}
    {{ $name }}: |
  {{ tpl $config $ | indent 4 }}
    {{- end }}
    {{- end -}}
  </code></pre>
  <p>values.yaml</p>
  <pre><code>configMap:
    enabled: true
    config.json: |
      food = pizza
      drink = soda
  </code></pre>
  <p>I want user to enable/disable if he wants to add configmap or not from the values.yaml</p>