fabric8io / kubernetes-client

Java client for Kubernetes & OpenShift
http://fabric8.io
Apache License 2.0
3.35k stars 1.45k forks source link

Retry in watch operations #6055

Open KaanSimsek opened 3 weeks ago

KaanSimsek commented 3 weeks ago

Is your enhancement related to a problem? Please describe

I have a watch operation for a crd. I am currently trying to enable retry in watch so when action fails it will retry. For example when an modified event came and something went wrong I want watcher to retry. But it does not. Are there any ways to do this currently?

Describe the solution you'd like

I dont have a solution

Describe alternatives you've considered

No response

Additional context

No response

shawkins commented 3 weeks ago

There is nothing built-in to the fabric8 client. There are several frameworks, or just the use of a work queue that could help you do this. Also the java operator SDK does have retry built-in.