Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.sh: waiting for deleted kube-ovn-pinger to disapper #4096

Merged
merged 2 commits into from
May 29, 2024
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
12 changes: 10 additions & 2 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4762,8 +4762,16 @@ for ns in $(kubectl get ns --no-headers -o custom-columns=NAME:.metadata.name);
done

kubectl rollout status deployment/coredns -n kube-system --timeout 300s
kubectl rollout status daemonset/kube-ovn-pinger -n kube-system --timeout 300s
kubectl wait pod --for=condition=Ready -l app=kube-ovn-pinger -n kube-system --timeout 300s
while true; do
pods=(`kubectl get pod -n kube-system -l app=kube-ovn-pinger --template '{{range .items}}{{if .metadata.deletionTimestamp}}{{.metadata.name}}{{"\n"}}{{end}}{{end}}'`)
if [ ${#pods[@]} -eq 0 ]; then
break
fi
echo "Waiting for ${pods[@]} to be deleted..."
sleep 1
done
kubectl rollout status daemonset/kube-ovn-pinger -n kube-system --timeout 120s
kubectl wait pod --for=condition=Ready -l app=kube-ovn-pinger -n kube-system --timeout 120s
echo "-------------------------------"
echo ""

Expand Down
Loading