Skip to content

Commit

Permalink
fix cleanup order (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 11, 2023
1 parent b9542ad commit c8af3dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ for oeip in $(kubectl get oeip -o name); do
kubectl delete --ignore-not-found $oeip
done

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

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

for slr in $(kubectl get switch-lb-rule -o name); do
kubectl delete --ignore-not-found $slr
done
Expand All @@ -73,6 +65,14 @@ for vpc in $(kubectl get vpc -o name); do
kubectl delete --ignore-not-found $vpc
done

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

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

# Delete Kube-OVN components
kubectl delete --ignore-not-found deploy kube-ovn-monitor -n kube-system
kubectl delete --ignore-not-found cm ovn-config ovn-ic-config ovn-external-gw-config -n kube-system
Expand Down

0 comments on commit c8af3dd

Please sign in to comment.