Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer treat dirs as kustomization files #224

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

mflendrich
Copy link
Contributor

Fixes #223
Signed-off-by: Michał Flendrich michal@flendrich.pro

Before this PR, kustomize-controller (incorrectly) takes a directory named Kustomization as a kustomization file, with the following consequences:

  • the directory which contains the directory called Kustomization is erroneously omitted from processing
  • trying to open the Kustomization directory as a file results in an error, reported by kustomization-controller

After this PR, when traversing the filesystem tree looking for Kustomization files, kustomization-controller doesn't try to take directories as kustomization files.

Testing: I believe that this change deserves an e2e test case, but apparently, in the current shape of e2e tests, this requires a GitHub repository with a "malicious" directory called Kustomization. I'll happily accept maintainers' guidance as to possible ways to test this change.

Fixes fluxcd#223

Signed-off-by: Michał Flendrich <michal@flendrich.pro>
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks 🙏

@stefanprodan stefanprodan merged commit 428493f into fluxcd:main Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directory called Kustomization incorrectly implies kustomization
3 participants