Watcher:
private final class CustomKubeWatcher implements Watcher<Pod> { ... }
Added using:
kubeClient.pods().inNamespace(kubeNamespace).watch(customKubeWatcher);
How do I stop the watcher? Does it get cleaned up when my client instance is GC'd?
Unless I'm missing something, watch()
will return a Watch
object, which can be closed.