squakez opened a new issue, #6981:
URL: https://github.com/apache/camel-k/issues/6981

   ### Bug description
   
   ```
   camel-k-operator-7f5d5f778c-4m858 camel-k-operator 
{"level":"error","ts":"2026-11-19T16:29:26Z","logger":"controller-runtime.cache.UnhandledError","msg":"Failed
 to 
watch","reflector":"k8s.io/[email protected]/tools/cache/reflector.go:343","type":"*v1alpha1.CamelMonitor","error":"failed
 to list *v1alpha1.CamelMonitor: the server could not find the requested 
resource (get 
camelmonitors.camel.apache.org)","stacktrace":"k8s.io/apimachinery/pkg/util/runtime.logError\n\tk8s.io/[email protected]/pkg/util/runtime/runtime.go:252\nk8s.io/apimachinery/pkg/util/runtime.handleError\n\tk8s.io/[email protected]/pkg/util/runtime/runtime.go:243\nk8s.io/apimachinery/pkg/util/runtime.HandleErrorWithContext\n\tk8s.io/[email protected]/pkg/util/runtime/runtime.go:229\nk8s.io/client-go/tools/cache.DefaultWatchErrorHandler\n\tk8s.io/[email protected]/tools/cache/reflector.go:227\nk8s.io/client-go/tools/cache.(*Reflector).RunWithContext.func1\n\tk8s.io/[email protected]/tools/cache/reflector.go:
 
430\nk8s.io/apimachinery/pkg/util/wait.loopConditionUntilContext.func2\n\tk8s.io/[email protected]/pkg/util/wait/loop.go:87\nk8s.io/apimachinery/pkg/util/wait.loopConditionUntilContext\n\tk8s.io/[email protected]/pkg/util/wait/loop.go:88\nk8s.io/apimachinery/pkg/util/wait.DelayFunc.Until\n\tk8s.io/[email protected]/pkg/util/wait/delay.go:39\nk8s.io/client-go/tools/cache.(*Reflector).RunWithContext\n\tk8s.io/[email protected]/tools/cache/reflector.go:428\nk8s.io/apimachinery/pkg/util/wait.(*Group).StartWithContext.func1\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:63\nk8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:72"}
   ```
   This is happening when, for example, we delete the `CamelMonitor` CRD. It 
does not panic though. It is likely to happen the same with Knative Service and 
any other resource we watch. It would be nice we find a way to handle properly 
instead of logging the error or requiring to restart.
   
   ### Camel K or runtime version
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to