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