-
Notifications
You must be signed in to change notification settings - Fork 625
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
Upgrading to 2.2.0, started getting "kustomize build failed: kustomization.yaml is empty" #4509
Comments
The workaround is to place in the dir a kustomization.yaml like so: apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: [] This will be fixed next year. |
Thanks for the prompt response. In this case, as a temporary workaround, i need to write an "empty" placeholder |
Hi. |
@stefanprodan Does this qualify as a breaking change? Should it have had a version number increase? We were hit by a similar issue when upgrading flux. |
Just chiming in that the |
Hi, "kustomize build failed: kustomization.yaml is empty" kustomization.yaml in empty git repo
Kustomization File
|
This will be fixed in the next patch version, I have found a way to deal with the Kustomize break change. Meanwhile @joawin you can set |
Describe the bug
Since upgrading to 2.2.0 (or 2.2.2) from 2.1.x, we started receiving the following errors
kustomize build failed: kustomization.yaml is empty
This is from a Kustomization object (kustomize.toolkit.fluxcd.io/v1) pointing to a folder with no resources.
Previously these were silently ignored, and kustomizations would suceed.
Steps to reproduce
Expected behavior
The kustomization would process an empty folder and would suceed
Screenshots and recordings
No response
OS / Distro
Ubuntu
Flux version
v2.2.2
Flux check
flux check
► checking prerequisites
✔ Kubernetes 1.28.4-eks-8cb36c9 >=1.26.0-0
► checking version in cluster
✔ distribution: flux-2.2.2
✔ bootstrapped: false
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.37.2
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.37.0
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.31.1
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.2.1
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.2.3
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.2.3
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta3
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1
✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
✔ helmreleases.helm.toolkit.fluxcd.io/v2beta2
✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2
✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2
✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta1
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta3
✔ receivers.notification.toolkit.fluxcd.io/v1
✔ all checks passed
Git provider
N/A
Container Registry provider
N/A
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: