Skip to content

Commit

Permalink
fix:Missing resource type in cleanCRD scripts (#2131)
Browse files Browse the repository at this point in the history
spidercoordinators & spidermultusconfigs
  • Loading branch information
Hobbey authored Aug 4, 2023
1 parent ccb48d9 commit 853f793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/scripts/cleanCRD.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ kubectl get spiderippools | sed '1 d' | awk '{print $1}' | xargs -n 1 -i kubectl

kubectl get spidersubnets | sed '1 d' | awk '{print $1}' | xargs -n 1 -i kubectl patch spidersubnets {} --patch '{"metadata": {"finalizers": null}}' --type=merge

kubectl get spidercoordinators | sed '1 d' | awk '{print $1}' | xargs -n 1 -i kubectl patch spidercoordinators {} --patch '{"metadata": {"finalizers": null}}' --type=merge

ALL_EP_INFO=`kubectl get spiderendpoints -A | sed '1 d'`
while read namespace epName other ; do
kubectl patch -n $namespace spiderendpoints $epName --patch '{"metadata": {"finalizers": null}}' --type=merge
Expand All @@ -16,3 +18,5 @@ kubectl delete crd spiderendpoints.spiderpool.spidernet.io
kubectl delete crd spiderippools.spiderpool.spidernet.io
kubectl delete crd spiderreservedips.spiderpool.spidernet.io
kubectl delete crd spidersubnets.spiderpool.spidernet.io
kubectl delete crd spidercoordinators.spiderpool.spidernet.io
kubectl delete crd spidermultusconfigs.spiderpool.spidernet.io

0 comments on commit 853f793

Please sign in to comment.