Describe the bug
In https://github.com/SAP/component-operator-runtime/releases/tag/v0.3.91 a change was implemented that should allow Helm and Kustomize generators to follow symlinks. However this change was not properly done. It was intended that only symlinks to regular files are followed, but instead all kinds of symlinks are followed (e.g. ones pointing to directories). Which makes operations such as os.ReadFile() fail.
Tested with Version
v0.3.101
To Reproduce
Steps to reproduce the behavior: Create a kustomization source containing symlinks to directories.
Expected behavior
This should not happen.