Skip to content

Commit

Permalink
fix: ensure all kube-ovn components deleted before annotate pods
Browse files Browse the repository at this point in the history
(cherry picked from commit a09e84d)
  • Loading branch information
oilbeater committed Nov 1, 2021
1 parent 9847a1b commit e3581cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ kubectl annotate ns --all ovn.kubernetes.io/private-
kubectl annotate ns --all ovn.kubernetes.io/allow-
kubectl annotate ns --all ovn.kubernetes.io/allocated-

# ensure ovs-ovn has been deleted
# ensure kube-ovn components have been deleted
while :; do
sleep 5
if [ $(kubectl get pod --no-headers -n kube-system -l app=ovs | wc -l) -eq 0 ]; then
if [ $(kubectl get pod --no-headers -n kube-system -l component=network | wc -l) -eq 0 ]; then
break
fi
done
Expand Down

0 comments on commit e3581cf

Please sign in to comment.