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 6550851 commit 08d29c0Copy full SHA for 08d29c0
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
@@ -16,7 +17,7 @@
16
17
from .process import run_command, stream_command
18
19
-def get_static_client() -> CoreV1Event:
20
+def get_static_client() -> CoreV1Api:
21
config.load_kube_config(config_file=KUBECONFIG)
22
return client.CoreV1Api()
23
0 commit comments