Skip to content

Commit ac65cb8

Browse files
committed
get_static_client: swap out type in return value
1 parent d7c791a commit ac65cb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/warnet/k8s.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import yaml
99
from kubernetes import client, config, watch
1010
from kubernetes.client.models import CoreV1Event, V1PodList
11+
from kubernetes.client.api import CoreV1Api
1112
from kubernetes.client.rest import ApiException
1213
from kubernetes.dynamic import DynamicClient
1314
from kubernetes.stream import stream
@@ -22,7 +23,7 @@
2223
from .process import run_command, stream_command
2324

2425

25-
def get_static_client() -> CoreV1Event:
26+
def get_static_client() -> CoreV1Api:
2627
config.load_kube_config(config_file=KUBECONFIG)
2728
return client.CoreV1Api()
2829

0 commit comments

Comments
 (0)