Skip to content

Commit

Permalink
REFACTOR: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Oct 7, 2020
1 parent 96d1087 commit e83172c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions collector/kube_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#from kubernetes.client import CustomObjectsApi
#from kubernetes.watch import Watch
#import kubernetes.config
import kubernetes
from kubernetes.client import CustomObjectsApi
from kubernetes.watch import Watch
import kubernetes.config

from collector.nais import init_nais_logging

Expand All @@ -23,9 +22,9 @@ def watch_nais_apps(callback_function):
print(e)
kubernetes.config.load_kube_config()

v1 = kubernetes.client.CustomObjectsApi()
v1 = CustomObjectsApi()

w = kubernetes.watch.Watch()
w = Watch()
logger.warning(" ")
logger.warning("STARTING TO WATCH")
logger.warning(" ")
Expand Down

0 comments on commit e83172c

Please sign in to comment.