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 5ea4304 commit 8ccb33fCopy full SHA for 8ccb33f
src/warnet/k8s.py
@@ -8,7 +8,8 @@
8
9
import yaml
10
from kubernetes import client, config, watch
11
-from kubernetes.client.models import CoreV1Event, V1Pod, V1PodList
+from kubernetes.client import CoreV1Api
12
+from kubernetes.client.models import V1Pod, V1PodList
13
from kubernetes.client.rest import ApiException
14
from kubernetes.dynamic import DynamicClient
15
from kubernetes.stream import stream
@@ -23,7 +24,7 @@
23
24
from .process import run_command, stream_command
25
26
-def get_static_client() -> CoreV1Event:
27
+def get_static_client() -> CoreV1Api:
28
config.load_kube_config(config_file=KUBECONFIG)
29
return client.CoreV1Api()
30
0 commit comments