-
Notifications
You must be signed in to change notification settings - Fork 600
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
Upgrade to 2.2.3 not solve the issue: kustomization.yaml is empty #4601
Comments
Running into this issue too. |
What we fixed in Flux is when you have no |
@stefanprodan Just to clarify, an "empty" Empty
|
Here is the best solution to workaround the breaking change in kustomize, without affecting the generated objects later on. apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
buildMetadata: [ originAnnotations ]
resources: [] Adding @gracedo the reason is that the latest kustomize version doesn't allow empty kustomization anymore, see kubernetes-sigs/kustomize#4949 |
The fix for this breaking change will be included in Flux 2.3 |
Describe the bug
I upgraded to 2.2.3, but still get the same error (as described and closed in #4509):
Logs:
Basically too avoid blocking in our system, the new charts or apps will be in
*-unstable
root kustomization, when it is stable, we move it to*-stable
kustomization. This renders most of the time the*-unstable
kustomization are empty.Steps to reproduce
and
Expected behavior
Just silently skip the empty Kustomization
Screenshots and recordings
No response
OS / Distro
macOS sonoma (client)
Flux version
v2.2.3
Flux check
flux check
► checking prerequisites
✔ Kubernetes 1.26.12-eks-5e0fdde >=1.26.0-0
► checking version in cluster
✔ distribution: flux-v2.2.3
✔ bootstrapped: true
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.37.4
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.37.1
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.31.2
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.2.2
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.2.4
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.2.4
► 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
github
Container Registry provider
ECR
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: