From 171cccaef1850f6efa87b85a3af74b9009217827 Mon Sep 17 00:00:00 2001 From: renxiangyu Date: Wed, 6 Dec 2023 14:33:50 +0800 Subject: [PATCH] fix: delete daemonset's pod in leaf node Signed-off-by: renxiangyu --- .../cluster-manager/controllers/pod/root_pod_controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go b/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go index fad5cd07c..e3d6ab158 100644 --- a/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go +++ b/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go @@ -248,6 +248,9 @@ func (r *RootPodReconciler) SetupWithManager(mgr manager.Manager) error { return true } } + if !p.DeletionTimestamp.IsZero() { + return true + } return false } }