From 1be268260c816fada51a92a2c1e49a4af1032a9e Mon Sep 17 00:00:00 2001 From: Marvin Beckers Date: Wed, 8 Oct 2025 10:24:51 +0200 Subject: [PATCH] Pass a logger to unmanaged sync controller to surface reconcile errors On-behalf-of: SAP Signed-off-by: Marvin Beckers --- internal/controller/sync/controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/controller/sync/controller.go b/internal/controller/sync/controller.go index e0e2bce..86eae42 100644 --- a/internal/controller/sync/controller.go +++ b/internal/controller/sync/controller.go @@ -21,6 +21,7 @@ import ( "fmt" "time" + "github.com/go-logr/zapr" "github.com/kcp-dev/logicalcluster/v3" "go.uber.org/zap" @@ -125,6 +126,7 @@ func Create( Reconciler: reconciler, MaxConcurrentReconciles: numWorkers, SkipNameValidation: ptr.To(true), + Logger: zapr.NewLogger(log.Desugar()), } log.Info("Setting up unmanaged controller...")