Skip to content

Commit 39f859c

Browse files
committed
k8s: add namespace to wait_for_init
1 parent b7ca9b1 commit 39f859c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/warnet/k8s.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ def wait_for_init(pod_name, timeout=300, namespace: Optional[str] = None):
296296
if pod.metadata.name == pod_name:
297297
for init_container_status in pod.status.init_container_statuses:
298298
if init_container_status.state.running:
299-
print(f"initContainer in pod {pod_name} is ready")
299+
print(f"initContainer in pod {pod_name} ({namespace}) is ready")
300300
w.stop()
301301
return True
302-
print(f"Timeout waiting for initContainer in {pod_name} to be ready.")
302+
print(f"Timeout waiting for initContainer in {pod_name} ({namespace})to be ready.")
303303
return False
304304

305305

0 commit comments

Comments
 (0)