Skip to content

Commit

Permalink
fix: clean vip eip snat dant fip in cleanup.sh (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobz965 authored and zhangzujian committed Jul 13, 2022
1 parent 460f930 commit bdfdc17
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ for pn in $(kubectl get provider-network -o name); do
kubectl delete --ignore-not-found $pn
done

for vip in $(kubectl get vip -o name); do
kubectl delete --ignore-not-found $vip
done

for eip in $(kubectl get eip -o name); do
kubectl delete --ignore-not-found $eip
done

for snat in $(kubectl get snat -o name); do
kubectl delete --ignore-not-found $snat
done

for dnat in $(kubectl get dnat -o name); do
kubectl delete --ignore-not-found $dnat
done

for fip in $(kubectl get fip -o name); do
kubectl delete --ignore-not-found $fip
done

sleep 5

# Delete Kube-OVN components
Expand Down

0 comments on commit bdfdc17

Please sign in to comment.