From 24f96b3a1620b7cd7fcab4cddb69359fa8d549ca Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Fri, 24 May 2024 05:21:59 +0000 Subject: [PATCH] delete lease on cleanup Signed-off-by: zhangzujian --- dist/images/cleanup.sh | 2 ++ 1 file changed, 2 insertions(+) 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"