Skip to content

Commit

Permalink
wait on job complete condition for amster ForgeRock#664
Browse files Browse the repository at this point in the history
  • Loading branch information
ghasemel committed Dec 27, 2022
1 parent b90f214 commit 7c974e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 7c974e3

Please sign in to comment.