Skip to content

Commit

Permalink
allow more time for pod to run
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Sep 1, 2024
1 parent 71825a0 commit 86e9d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fluxnetes_scheduler=$(kubectl get pods --selector=job-name=job -o json | jq -r .

echo
echo "Fluxnetes job pod is ${fluxnetes_job_pod}"
sleep 10
sleep 20

# Shared function to check output
function check_output {
Expand Down Expand Up @@ -75,4 +75,4 @@ check_output 'check-scheduled-by' "${fluxnetes_scheduler}" "fluxnetes"
# But events tell us actually what happened, let's parse throught them and find our pods
# This tells us the Event -> reason "Scheduled" and who it was reported by.
reported_by=$(kubectl events --for pod/${fluxnetes_job_pod} -o json | jq -c '[ .items[] | select( .reason | contains("Scheduled")) ]' | jq -r .[0].reportingComponent)
check_output 'reported-by-fluxnetes' "${reported_by}" "fluxnetes"
check_output 'reported-by-fluxnetes' "${reported_by}" "fluxnetes"

0 comments on commit 86e9d66

Please sign in to comment.