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 9581d06 commit b45ee71
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 @@ -15,6 +15,14 @@ for subnet in $(kubectl get subnet -o name); do
kubectl delete "$subnet"
done

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 $vlan
done
Expand Down

0 comments on commit b45ee71

Please sign in to comment.