microbean / microbean-kubernetes-controller

A toolset for writing Kubernetes controllers, or operators, in Java.
https://microbean.github.io/microbean-kubernetes-controller/
Apache License 2.0
20 stars 7 forks source link

Controller#start() is not resilient in the face of RuntimeExceptions #6

Closed ljnelson closed 6 years ago

ljnelson commented 6 years ago

The start method starts a bunch of other things before starting a Reflector. The Reflector's start method may fail thanks to non-checked exceptions that can be thrown by KubernetesClient. We need to ensure that all previously stopped bits are closed properly in such a case.