mirror of https://github.com/helm/helm
A dangling symlink in a chart directory made loading fail, even when a .helmignore rule excluded it. The walker returned an error from symwalk before the loader could apply its ignore rules, so the entry was never checked against .helmignore. Pass the symlink resolution error to the walk callback instead of returning it directly. In loadDir, if the entry is a symlink that cannot be resolved and a .helmignore rule matches it, skip it. A broken symlink that is not ignored still fails with "error evaluating symlink", as before. Apply the change to both the v2 and v3 chart loaders, and add a test covering the ignored and non-ignored cases. Signed-off-by: Vimal Kumar Yadav <174954713+vimalyad@users.noreply.github.com>pull/32705/head
parent
8a9993eff0
commit
e0a2b9e26f
Loading…
Reference in new issue