Skip to content

Commit

Permalink
fix: vpc and vpc nat gw not clean (#2032)
Browse files Browse the repository at this point in the history
Co-authored-by: zhangbingbing <zhangbingbing@yealink.com>
  • Loading branch information
2 people authored and hongzhen-ma committed Nov 14, 2022
1 parent 791d924 commit f69ad38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ for subnet in $(kubectl get subnet -o name); do
done
set -e

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

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

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

0 comments on commit f69ad38

Please sign in to comment.