From 67e1485f12db2d3392ad5d273e357f0a601c7f2c Mon Sep 17 00:00:00 2001 From: Abyss <45425302+wangxye@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:19:35 +0800 Subject: [PATCH] fix: remove custom signal handler for concurrent reclaims (#1889) Signed-off-by: wangxye --- cmd/yurt-iot-dock/app/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/yurt-iot-dock/app/core.go b/cmd/yurt-iot-dock/app/core.go index ce4056db75a..d889fd071b4 100644 --- a/cmd/yurt-iot-dock/app/core.go +++ b/cmd/yurt-iot-dock/app/core.go @@ -186,7 +186,7 @@ func Run(opts *options.YurtIoTDockOptions, stopCh <-chan struct{}) { } setupLog.Info("[run controllers] Starting manager, acting on " + fmt.Sprintf("[NodePool: %s, Namespace: %s]", opts.Nodepool, opts.Namespace)) - if err := mgr.Start(SetupSignalHandler(mgr.GetClient(), opts)); err != nil { + if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil { setupLog.Error(err, "could not running manager") os.Exit(1) }