Skip to content

Commit 8a4cd49

Browse files
committed
fix static_client type
1 parent 9662025 commit 8a4cd49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/warnet/k8s.py

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

88
import yaml
99
from kubernetes import client, config, watch
10-
from kubernetes.client.models import CoreV1Event, V1PodList
11-
from kubernetes.client.rest import ApiException
10+
from kubernetes.client import CoreV1Api
11+
from kubernetes.client.models import V1PodList
1212
from kubernetes.dynamic import DynamicClient
1313
from kubernetes.stream import stream
1414

@@ -22,7 +22,7 @@
2222
from .process import run_command, stream_command
2323

2424

25-
def get_static_client() -> CoreV1Event:
25+
def get_static_client() -> CoreV1Api:
2626
config.load_kube_config(config_file=KUBECONFIG)
2727
return client.CoreV1Api()
2828

0 commit comments

Comments
 (0)