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
  • Loading branch information
oilbeater committed Nov 1, 2021
1 parent 810f90d commit a09e84d
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 @@ -83,10 +83,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 a09e84d

Please sign in to comment.