We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
k8s
1 parent bc7fbd1 commit fff0e58Copy full SHA for fff0e58
src/warnet/k8s.py
@@ -87,8 +87,7 @@ def get_mission(mission: str) -> list[V1Pod]:
87
88
def get_pod_exit_status(pod_name):
89
try:
90
- sclient = get_static_client()
91
- pod = sclient.read_namespaced_pod(name=pod_name, namespace=get_default_namespace())
+ pod = get_pod(pod_name)
92
for container_status in pod.status.container_statuses:
93
if container_status.state.terminated:
94
return container_status.state.terminated.exit_code
0 commit comments