Skip to content

Commit

Permalink
fix: clean CRDs introduced by new vpc-nat-gateway (#1563)
Browse files Browse the repository at this point in the history
(cherry picked from commit a833050)
  • Loading branch information
oilbeater committed May 30, 2022
1 parent e35f90f commit 77044e3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ kubectl delete --ignore-not-found clusterrole system:ovn
kubectl delete --ignore-not-found clusterrolebinding ovn

# delete CRD
kubectl delete --ignore-not-found crd htbqoses.kubeovn.io
kubectl delete --ignore-not-found crd security-groups.kubeovn.io
kubectl delete --ignore-not-found crd ips.kubeovn.io
kubectl delete --ignore-not-found crd subnets.kubeovn.io
kubectl delete --ignore-not-found crd vpc-nat-gateways.kubeovn.io
kubectl delete --ignore-not-found crd vpcs.kubeovn.io
kubectl delete --ignore-not-found crd vlans.kubeovn.io
kubectl delete --ignore-not-found crd provider-networks.kubeovn.io
kubectl delete --ignore-not-found crd htbqoses.kubeovn.io security-groups.kubeovn.io ips.kubeovn.io subnets.kubeovn.io \
vpc-nat-gateways.kubeovn.io vpcs.kubeovn.io vlans.kubeovn.io provider-networks.kubeovn.io \
iptables-dnat-rules.kubeovn.io iptables-eips.kubeovn.io iptables-fip-rules.kubeovn.io \
iptables-snat-rules.kubeovn.io vips.kubeovn.io

# Remove annotations/labels in namespaces and nodes
kubectl annotate no --all ovn.kubernetes.io/cidr-
Expand Down

0 comments on commit 77044e3

Please sign in to comment.