0

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?

https://github.com/fabric8io/kubernetes-client

mehmetg
  • 197
  • 1
  • 4
  • 16

1 Answers1

1

Unless I'm missing something, watch() will return a Watch object, which can be closed.

Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
  • Thank you. I have found the same after reading the API docs for a bit. It's strange none of the examples demo this usage. – mehmetg Jul 16 '17 at 08:21