helm-docs icon indicating copy to clipboard operation
helm-docs copied to clipboard

Empty values.yaml throws warning and fails to generate readme

Open nwithers-ecr opened this issue 3 years ago • 0 comments

I am running helm docs v1.10.0 and my sub-chart with empty values.yaml is giving me problems. The file consists of nothing but a yaml doc header --- In the helm docs documentation is says for chart.valuesSection: A section headed by the valuesHeader from above containing the valuesTable from above or "" if there are no values. So given that fact I was expecting an empty string to be rendered, since there are no values, however I am given this warning instead, and the readme is not updated.

time="2022-05-30T20:35:04Z" level=warning msg="Error generating template data for chart stable/nloop/charts/sub-chart: values file must resolve to a map (was 8)"

Here is my README.md.gotmpl

{{ template "chart.header" . }}
{{ template "chart.description" . }}

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesSection" . }}

{{ template "helm-docs.versionFooter" . }}

nwithers-ecr avatar May 30 '22 20:05 nwithers-ecr