mirror of https://github.com/helm/helm
Files.Lines guards against a nil entry but an empty file inside a
chart is stored as a non-nil zero-length byte slice, so the trailing
newline check indexes s[-1] and panics. The engine recovers the panic
into a render error, making every template/install/upgrade/lint that
references the file fail.
Extend the guard to len(f[path]) == 0 and return an empty slice,
matching the behaviour for missing files.
Fixes #32279
Signed-off-by: Mahesh Sadupalli <mahesh.sadupalli@gmail.com>
(cherry picked from commit c02a9aed34)
pull/32552/head
parent
1ad6e68924
commit
955dfab1e6
Loading…
Reference in new issue