mirror of https://github.com/helm/helm
Instead of silently skipping all broken symlinks unconditionally, pass the error to the walkFn callback so chart loaders can check .helmignore patterns before deciding whether to error. - internal/sympath/walk.go: call walkFn with the error instead of returning nil for broken symlinks - pkg/chart/v2/loader/directory.go: skip broken symlink errors only when the file matches a .helmignore rule - internal/chart/v3/loader/directory.go: same fix for v3 charts - Add TestLoadDirWithBrokenSymlinkNotInHelmignore to verify that broken symlinks not in .helmignore still cause an error Signed-off-by: Kartik Suryavanshi <kartik.suryavanshi@outlook.com> Signed-off-by: Kartik Suryavanshi <158498247+KartikSuryavanshi@users.noreply.github.com>pull/32264/head
parent
e98a25134a
commit
3d42cb4c6a
Loading…
Reference in new issue