From 7c974e3ae0a4070b4761a0b99da1a511036bbda6 Mon Sep 17 00:00:00 2001 From: Ghasem Elyasi Date: Tue, 27 Dec 2022 14:48:39 +0100 Subject: [PATCH] wait on job complete condition for amster #664 --- bin/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/utils.py b/bin/utils.py index 559a6df4e..0b61d6913 100644 --- a/bin/utils.py +++ b/bin/utils.py @@ -338,7 +338,7 @@ def wait_for_amster(ns, timeout_secs=600): timeout_secs: timeout in secs. """ _runwithtimeout(_waitforresource, [ns, 'job', 'amster'], 30) - return run('kubectl', f'-n {ns} wait --for=condition=Ready pod -l app.kubernetes.io/name=amster --timeout={timeout_secs}s') + return run('kubectl', f'-n {ns} wait --for=condition=complete job -l app.kubernetes.io/name=amster --timeout={timeout_secs}s') def wait_for_idm(ns, timeout_secs=600): """