From 182874393102aa8a7f221b28c77d75e8db58d28d Mon Sep 17 00:00:00 2001 From: JeremiahUy Date: Wed, 7 Oct 2020 11:11:25 +0200 Subject: [PATCH] REFACTOR: kubernetes stream --- collector/kube_api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/collector/kube_api.py b/collector/kube_api.py index e817301..f87fbca 100644 --- a/collector/kube_api.py +++ b/collector/kube_api.py @@ -24,6 +24,12 @@ def watch_nais_apps(callback_function): v1 = CustomObjectsApi() + data = v1.list_cluster_custom_object(group="nais.io", + version="v1alpha1", + plural="applications") + + print(data) + w = Watch() logger.warning(" ")