<p>When calling <code>helm template ...</code> I get this error:</p>
<pre><code>Error: YAML parse error on `myfile.yaml`: error converting YAML to JSON: `yaml`: line 60: mapping values are not allowed in this context
</code></pre>
<p>I would like to know, if I can set debug options to analyze this problem.
Because <code>myfile.yaml</code> is valid in another context with other values, it would be helpful, if I could print out the generated invalid <code>yaml</code> before helm tries to convert it to <code>json</code>.</p>
<p>There are <a href="https://helm.sh/docs/helm/helm/" rel="nofollow noreferrer">options --debug and -v</a> but these don't help.</p>
<p><strong>Remarks</strong></p>
<p>There is another <a href="https://stackoverflow.com/questions/47076858/kubernetes-helm-chart-debugging">question with the same title</a>. But that question is about a specific problem. My question is not about a specific problem. Instead I would like to get <strong>general hints</strong>, how to analyze such problems.</p>

Matthias M
<p><code>helm template --dry-run --debug</code> does not validate the template/yaml.</p>
<p>This should print out the yaml as proposed to the kubernetes api.</p>
