Skip to content

Commit 1cc167e

Browse files
renxiangyuwangyizhi1
renxiangyu
authored andcommitted
fix: delete daemonset's pod in leaf node
Signed-off-by: renxiangyu <[email protected]>
1 parent 3b718ab commit 1cc167e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ func (r *RootPodReconciler) SetupWithManager(mgr manager.Manager) error {
248248
return true
249249
}
250250
}
251+
if !p.DeletionTimestamp.IsZero() {
252+
return true
253+
}
251254
return false
252255
}
253256
}

0 commit comments

Comments
 (0)