Skip to content

Commit

Permalink
e2e: wait for Kata runtime to be available
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Nov 21, 2024
1 parent 187ea01 commit 4486150
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/test-peerpods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ just create AKS-PEER-SNP
just get-credentials AKS-PEER-SNP
just node-installer AKS-PEER-SNP

found=false
for i in $(seq 30); do
if kubectl get runtimeclass | grep -q kata-remote; then
found=true
break
fi
sleep 10
done

if [[ $found != true ]]; then
echo "Kata RuntimeClass not ready" >&2
exit 1
fi

cleanup() {
kubectl delete deploy nginx
kubectl wait --for=delete pod --selector=app=nginx --timeout=5m
Expand Down

0 comments on commit 4486150

Please sign in to comment.