Skip to content

Commit 08d29c0

Browse files
committed
get_static_client: swap out type in return value
1 parent 6550851 commit 08d29c0

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
@@ -16,7 +17,7 @@
1617
from .process import run_command, stream_command
1718

1819

19-
def get_static_client() -> CoreV1Event:
20+
def get_static_client() -> CoreV1Api:
2021
config.load_kube_config(config_file=KUBECONFIG)
2122
return client.CoreV1Api()
2223

0 commit comments

Comments
 (0)