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

Look for all accepted Kustomization filenames #238

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Jan 15, 2021

Fixes: #225

Before this commit we only checked if a kustomization.yaml existed at
the root of the given directory, this caused problems when people for
example used .yml as the extension, as the generated
kustomization.yaml would conflict with the .yml file.

After this commit all recognized Kustomization filenames as listed by
Kustomize itself are accepted, including files without an extension
(Kustomization).

@hiddeco hiddeco added the enhancement New feature or request label Jan 15, 2021
@hiddeco hiddeco force-pushed the accept-all-kustomization-filenames branch from c187f9d to 787ea83 Compare January 15, 2021 13:41
@hiddeco hiddeco added the area/kustomize Kustomize related issues and pull requests label Jan 15, 2021
@hiddeco hiddeco force-pushed the accept-all-kustomization-filenames branch 2 times, most recently from 1ca958c to 7ffe184 Compare January 15, 2021 13:49
Copy link
Member

@stefanprodan stefanprodan 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 @hiddeco 🍰

@hiddeco hiddeco force-pushed the accept-all-kustomization-filenames branch 2 times, most recently from 9ba4daa to b104619 Compare January 15, 2021 14:19
Before this commit we only checked if a `kustomization.yaml` existed at
the root of the given directory, this caused problems when people for
example used `.yml` as the extension, as the generated
`kustomization.yaml` would conflict with the `.yml` file.

After this commit all recognized Kustomization filenames as listed by
Kustomize itself are accepted, including files _without_ an extension
(`Kustomization`).

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco hiddeco force-pushed the accept-all-kustomization-filenames branch from b104619 to 59c24e7 Compare January 15, 2021 14:31
@hiddeco hiddeco merged commit 80c2169 into main Jan 15, 2021
@hiddeco hiddeco deleted the accept-all-kustomization-filenames branch January 15, 2021 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kustomize Kustomize related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kustomize build failed: Found multiple kustomization files under
2 participants