-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am not entirely sure but I believe that the relevant Go code ends up retrying forever:
But Reflector#start() will bomb out if it can't list things:
microbean-kubernetes-controller/src/main/java/org/microbean/kubernetes/controller/Reflector.java
Line 625 in ee05d9e
| final KubernetesResourceList<? extends T> list = ((Listable<? extends KubernetesResourceList<? extends T>>)this.operation).list(); |
That line will throw a KubernetesClientException, and that's it. I think this whole method should (internally) be trying this list-and-watch loop forever.
For more details, see also the ListAndWatch function:
Another way to put this is that currently Reflector#start() really just models ListAndWatch, but it should be modeling Run in reflector.go as well.
Complicating matters is the fact that the fabric8 client will automatically try to reconnect watches if they fail.