title: How to debug Helm chart errors like "error converting YAML to JSON: yaml: mapping values are not allowed in this context"?
body: <p>I'm using Helm 3 and microk8s. When I try a dry run:</p>
  
  <pre><code>microk8s.helm install &lt;...&gt; --dry-run --debug
  </code></pre>
  
  <p>I see errors like </p>
  
  <pre><code>Error: YAML parse error on ./templates/deployment.yaml: error converting YAML to JSON: yaml: mapping values are not allowed in this context
  helm.go:76: [debug] error converting YAML to JSON: yaml: mapping values are not allowed in this context
  YAML parse error on ./templates/deployment.yaml
  helm.sh/helm/v3/pkg/releaseutil.(*manifestFile).sort
      /home/circleci/helm.sh/helm/pkg/releaseutil/manifest_sorter.go:129
  helm.sh/helm/v3/pkg/releaseutil.SortManifests
      /home/circleci/helm.sh/helm/pkg/releaseutil/manifest_sorter.go:98
  helm.sh/helm/v3/pkg/action.(*Configuration).renderResources
      /home/circleci/helm.sh/helm/pkg/action/install.go:455
  helm.sh/helm/v3/pkg/action.(*Install).Run
      /home/circleci/helm.sh/helm/pkg/action/install.go:214
  main.runInstall
  ...
  </code></pre>
  
  <p>I found several questions with a similar error, but the answer is usually just asking for read a chart code. I have a large chart and need to debug this error on my own. And guessing which line it complains about doesn't seem meaningful.</p>
  
  <p>Is there a way to know what exactly is wrong in the config?</p>