From 9097eeef26f2c28f75335b96eb3258d4de931e3b Mon Sep 17 00:00:00 2001 From: Fabian von Feilitzsch Date: Fri, 27 Oct 2017 15:56:18 -0400 Subject: [PATCH] Support watching openshift resources --- openshift/watch.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 openshift/watch.py diff --git a/openshift/watch.py b/openshift/watch.py new file mode 100644 index 00000000..7aba4785 --- /dev/null +++ b/openshift/watch.py @@ -0,0 +1,11 @@ +from kubernetes.watch import Watch as K8sWatch + +from openshift import client + + +class Watch(K8sWatch): + + def __init__(self, return_type=None): + self._raw_return_type = return_type + self._stop = False + self._api_client = client.ApiClient()