Skip to content

Commit 8ccb33f

Browse files
committed
k8s: fix static_client type
1 parent 5ea4304 commit 8ccb33f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/warnet/k8s.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import yaml
1010
from kubernetes import client, config, watch
11-
from kubernetes.client.models import CoreV1Event, V1Pod, V1PodList
11+
from kubernetes.client import CoreV1Api
12+
from kubernetes.client.models import V1Pod, V1PodList
1213
from kubernetes.client.rest import ApiException
1314
from kubernetes.dynamic import DynamicClient
1415
from kubernetes.stream import stream
@@ -23,7 +24,7 @@
2324
from .process import run_command, stream_command
2425

2526

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

0 commit comments

Comments
 (0)