Skip to content

Commit

Permalink
Undo change to script
Browse files Browse the repository at this point in the history
Signed-off-by: biswajit-9776 <[email protected]>
  • Loading branch information
biswajit-9776 committed Aug 21, 2024
1 parent dfe547f commit 1327a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gh-actions/wait_for_kubeflow_m2m_oidc_configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ get_latest_job() {

# Wait until a Job is created
echo "Waiting for a Job to be created by the ${CRONJOB_NAME} CronJob..."
while [$SECONDS -lt 60]; do
while true; do
JOB_NAME=$(get_latest_job)
if [[ -n "${JOB_NAME}" ]]; then
echo "Job ${JOB_NAME} created."
Expand All @@ -26,7 +26,7 @@ done

# Wait for the Job to complete successfully
echo "Waiting for the Job ${JOB_NAME} to complete..."
while [$SECONDS -lt 60]; do
while true; do
STATUS=$(kubectl get job "${JOB_NAME}" -n "${NAMESPACE}" -o jsonpath='{.status.conditions[?(@.type=="Complete")].status}')
if [[ "${STATUS}" == "True" ]]; then
echo "Job ${JOB_NAME} completed successfully."
Expand Down

0 comments on commit 1327a82

Please sign in to comment.