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

One-time error when ignored Job is present in cluster #4547

Open
1 task done
tun0 opened this issue Jan 16, 2024 · 0 comments
Open
1 task done

One-time error when ignored Job is present in cluster #4547

tun0 opened this issue Jan 16, 2024 · 0 comments

Comments

@tun0
Copy link

tun0 commented Jan 16, 2024

Describe the bug

When a Job resource with either the kustomize.toolkit.fluxcd.io/ssa: ignore or kustomize.toolkit.fluxcd.io/reconcile: disabled annotation is present in the cluster, Flux will throw an error during the next reconcile:

delete failed, errors: Job/ query failed: resource name may not be empty;

This error is both unexpected and rather hard to "decipher".

Steps to reproduce

  1. Add a Job resource to Git repository with one of the mentioned annotations
  2. Manually apply Job to run it on-demand
  3. Have Flux reconcile, either on schedule or manually
  4. Flux throws error as listed in description

Expected behavior

Flux shouldn't care about the manually created Job resource and as such shouldn't throw the error (step 4).

Screenshots and recordings

No response

OS / Distro

N/A

Flux version

v2.2.2

Flux check

► checking prerequisites
✔ Kubernetes 1.28.3-gke.1286000 >=1.26.0-0
► checking version in cluster
✔ distribution: flux-v2.2.2
✔ bootstrapped: true
► 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

No response

Container Registry provider

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
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

No branches or pull requests

1 participant