Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty values.yaml throws warning and fails to generate readme #152

Open
nwithers-ecr opened this issue May 30, 2022 · 0 comments
Open

Empty values.yaml throws warning and fails to generate readme #152

nwithers-ecr opened this issue May 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nwithers-ecr
Copy link

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" . }}
@Nepo26 Nepo26 added the bug Something isn't working label Jun 29, 2023
@Nepo26 Nepo26 added this to the General Cleanup milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants