diff --git a/dist/images/cleanup.sh b/dist/images/cleanup.sh index 1ef34c4d2e9..25673b3f333 100644 --- a/dist/images/cleanup.sh +++ b/dist/images/cleanup.sh @@ -11,9 +11,9 @@ kubectl delete secret kube-ovn-tls -n kube-system --ignore-not-found=true kubectl delete sa ovn -n kube-system --ignore-not-found=true kubectl delete clusterrole system:ovn --ignore-not-found=true kubectl delete clusterrolebinding ovn --ignore-not-found=true -kubectl delete svc ovn-nb ovn-sb kube-ovn-pinger kube-ovn-controller kube-ovn-cni -n kube-system --ignore-not-found=true +kubectl delete svc ovn-nb ovn-sb kube-ovn-pinger kube-ovn-controller kube-ovn-cni kube-ovn-monitor -n kube-system --ignore-not-found=true kubectl delete ds kube-ovn-cni -n kube-system --ignore-not-found=true -kubectl delete deployment ovn-central kube-ovn-controller -n kube-system --ignore-not-found=true +kubectl delete deployment ovn-central kube-ovn-controller kube-ovn-monitor -n kube-system --ignore-not-found=true for ovsstatus in $(kubectl get pod --no-headers -n kube-system -lapp=ovs | awk '{print $1"+"$3}') do status=`echo ${ovsstatus#*+}`