Skip to content

[BUG] Problematic behaviour when following symlinks #302

@cbarbian-sap

Description

@cbarbian-sap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions