Skip to content

Commit

Permalink
wait for webhook to be ready
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Jan 19, 2025
1 parent 795415e commit 27cd48b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ echo "Found fluxqueue scheduler pod: ${scheduler_pod}"
postgres_pod=$(kubectl get pods -n ${namespace} -o json | jq -r .items[2].metadata.name)
echo "Found fluxqueue postgres pod: ${postgres_pod}"


# Wait for fluxion to pull (largest container)
while true
do
Expand Down Expand Up @@ -65,9 +64,18 @@ function check_output {
fi
}

# Now create the pod and job
echo_run kubectl apply -f ./examples/pod.yaml
sleep 3
# Wait for webhook to be ready and submit the pod
while true
do
echo_run kubectl apply -f ./examples/pod.yaml
retval=$?
if [[ "${retval}" == "0" ]]; then
echo "Webhook for ${controller_pod} is ready"
break
fi
sleep 10
done

echo_run kubectl get pods

# The pod should be running, and scheduler should be fluxion
Expand Down

0 comments on commit 27cd48b

Please sign in to comment.