title: How to get the output file without yaml validation in Helm charts?
body: <p>I have Helm charts that try to install a service on k8s. when I am trying to run this command it shows this error:</p>
  <blockquote>
  <p>YAML parse error on myService/templates/configmap.yaml: error converting YAML to JSON: yaml: line 152: did not find expected key</p>
  </blockquote>
  <p>here is my configmap.yaml file:</p>
  <pre><code>{{- if .Values.configFiles }}
  apiVersion: v1
  kind: ConfigMap
  metadata:
    name: {{ include &quot;revad.fullname&quot; . }}-config
    labels:
      {{- include &quot;revad.labels&quot; . | nindent 4 }}
  data:
  {{- $host := .Values.HostURL }}
  {{- $ocHost := .Values.OCURL }}
  {{- $secret := .Values.SharedSecret }}
  {{- $certFile := .Values.CertFile }}
  {{- $certKey := .Values.CertKey }}
  {{- range $filename, $fileContents := .Values.configFiles }}
    {{ $filename }}: |-
  {{ if eq $filename &quot;oc.revad.toml&quot; }}
    {{ $fileContents | indent 4 | replace &quot;OC_URL&quot; $ocHost | replace &quot;HOST_URL&quot; $host | replace &quot;SHARED_SECRET&quot; $secret | replace &quot;CERT_FILE&quot; $certFile | replace &quot;CERT_KEY&quot; $certKey | quote }}
  {{ else }}  
    {{ $fileContents | indent 4 }}
  {{ end }}  
  {{- end }}
  {{- end }}
  </code></pre>
  <p>I cannot find the exact location of the error. I was wondering how much it would be helpful if there were an option that shows the output file without any YAML validation to debug my template. does helm has this option? if the answer is no, so how can I debug my helm chart?</p>