diff --git a/dist/images/cleanup.sh b/dist/images/cleanup.sh index c10d9bdeabf..e186873d4e9 100644 --- a/dist/images/cleanup.sh +++ b/dist/images/cleanup.sh @@ -191,6 +191,8 @@ kubectl delete --ignore-not-found sa ovn ovn-ovs kube-ovn-cni kube-ovn-app -n ku kubectl delete --ignore-not-found clusterrole system:ovn system:ovn-ovs system:kube-ovn-cni system:kube-ovn-app kubectl delete --ignore-not-found clusterrolebinding ovn ovn ovn-ovs kube-ovn-cni kube-ovn-app +kubectl delete --ignore-not-found -n kube-system lease kube-ovn-controller + # Remove annotations in all pods of all namespaces for ns in $(kubectl get ns -o name | awk -F/ '{print $2}'); do echo "annotating pods in namespace $ns"