Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions cni-repair-controller/integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ linkerd check

step 'Installing pause DaemonSet'
kubectl apply -f pause-ds.yml
kubectl wait --for=condition=ready --timeout=300s -l app=pause-app po
until kubectl wait \
--for=condition=ready \
-l app=pause-app \
pod; do
echo "Waiting for pause pod to become available..."
sleep 5
done

step 'Adding a node'
cluster=$(just-k3d --evaluate K3D_CLUSTER_NAME)
Expand All @@ -77,9 +83,11 @@ until kubectl wait \
done

step 'Checking new DS replica gets replaced'
for _ in {1..5}; do
if kubectl wait --for=condition=ready --timeout=10s -l app=pause-app po; then
break
fi
until kubectl wait \
--for=condition=ready \
--timeout=10s \
-l app=pause-app \
pod; do
echo "Waiting for DS replica to get replaced..."
sleep 5
done
kubectl wait --for=condition=ready --timeout=10s -l app=pause-app po;