giantswarm / kvm-operator-node-controller

Manages Kubernetes nodes based on kvm-operator (host cluster) state.
Apache License 2.0
1 stars 1 forks source link

Initialize k8s clients on every check. #9

Open r7vme opened 6 years ago

r7vme commented 6 years ago

This allows to workaround case, whem master died and tcp connection stays dead for 10-17 minutes.

I'm also removing unit test as i'm initializing real clients inside controller, so i can not use fake controllers in unit test.

Fixes: https://github.com/giantswarm/kvm-operator-node-controller/issues/5