We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9662025 commit 8a4cd49Copy full SHA for 8a4cd49
src/warnet/k8s.py
@@ -7,8 +7,8 @@
7
8
import yaml
9
from kubernetes import client, config, watch
10
-from kubernetes.client.models import CoreV1Event, V1PodList
11
-from kubernetes.client.rest import ApiException
+from kubernetes.client import CoreV1Api
+from kubernetes.client.models import V1PodList
12
from kubernetes.dynamic import DynamicClient
13
from kubernetes.stream import stream
14
@@ -22,7 +22,7 @@
22
from .process import run_command, stream_command
23
24
25
-def get_static_client() -> CoreV1Event:
+def get_static_client() -> CoreV1Api:
26
config.load_kube_config(config_file=KUBECONFIG)
27
return client.CoreV1Api()
28
0 commit comments