diff --git a/docs/chart_template_guide/accessing_files.md b/docs/chart_template_guide/accessing_files.md index 43b1307d5..3149abf88 100644 --- a/docs/chart_template_guide/accessing_files.md +++ b/docs/chart_template_guide/accessing_files.md @@ -235,8 +235,9 @@ data: {{ . }}{{ end }} ``` -If the file is empty or does not exist, `Lines` returns an empty list. In that -case, a `range` over it simply produces no output instead of failing. +If the file you reference is empty or does not exist, `Lines` returns an empty +list rather than failing. The `range` loop then produces no output, so +referencing a missing or empty file will not cause template rendering to fail. There is no way to pass files external to the chart during `helm install`. So if you are asking users to supply data, it must be loaded using `helm install -f` diff --git a/versioned_docs/version-3/chart_template_guide/accessing_files.md b/versioned_docs/version-3/chart_template_guide/accessing_files.md index ff3e6c3a1..3149abf88 100644 --- a/versioned_docs/version-3/chart_template_guide/accessing_files.md +++ b/versioned_docs/version-3/chart_template_guide/accessing_files.md @@ -235,6 +235,10 @@ data: {{ . }}{{ end }} ``` +If the file you reference is empty or does not exist, `Lines` returns an empty +list rather than failing. The `range` loop then produces no output, so +referencing a missing or empty file will not cause template rendering to fail. + There is no way to pass files external to the chart during `helm install`. So if you are asking users to supply data, it must be loaded using `helm install -f` or `helm install --set`.