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>pull/32290/head
parent
543b94d673
commit
143631f735
Loading…
Reference in new issue