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

[bug]: Watcher stops watching custom resource after some time #763

Closed
OQCDoe opened this issue May 17, 2024 · 1 comment
Closed

[bug]: Watcher stops watching custom resource after some time #763

OQCDoe opened this issue May 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@OQCDoe
Copy link

OQCDoe commented May 17, 2024

Describe the bug

I am deploying a pretty basic operator into our k8s cluster (v1.28.5) and after a while (around 1 hour) we receive this event in our log:

{"Timestamp":"2024-05-17 13:11:04Z","EventId":0,"LogLevel":"Debug","Category":"KubeOps.Operator.Watcher.LeaderAwareResourceWatcher","Message":"The watcher received a known error from the watched resource \u0022V1TestEntity\u0022. This indicates that there are no instances of this resource.","State":{"Message":"The watcher received a known error from the watched resource \u0022V1TestEntity\u0022. This indicates that there are no instances of this resource.","resource":"V1TestEntity","{OriginalFormat}":"The watcher received a known error from the watched resource \u0022{resource}\u0022. This indicates that there are no instances of this resource."}}

When deploying a custom resource after this message appears, the ReconcileAsync message doesnt get called an no further log messages are written.

To reproduce

  1. Write basic Operator with v9.1.0
  2. Deploy Operator to k8s 1.28.5
  3. Do not deploy any instances of the custom resource
  4. Wait >1 hour
  5. Deploy an instance of the CR
  6. Operator does not fire

Expected behavior

The Operator should reconcile CRs even after some time has passed and even if there are no instances of CRs for a while

Screenshots

No response

Additional Context

The relevant code

@buehler
Copy link
Owner

buehler commented May 29, 2024

Hey @OQCDoe
Thanks for reporting, this seems to be a duplicate of #739.

@buehler buehler closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants