Skip to content

Commit 9513f9e

Browse files
authored
Merge pull request #105 from kcp-ci-bot/cherry-pick-104-to-release-0.4
[release-0.4] Pass a logger to unmanaged sync controller to surface reconcile errors
2 parents 68c9cfc + 9fc04b3 commit 9513f9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/controller/sync/controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"fmt"
2222
"time"
2323

24+
"github.com/go-logr/zapr"
2425
"github.com/kcp-dev/logicalcluster/v3"
2526
"go.uber.org/zap"
2627

@@ -125,6 +126,7 @@ func Create(
125126
Reconciler: reconciler,
126127
MaxConcurrentReconciles: numWorkers,
127128
SkipNameValidation: ptr.To(true),
129+
Logger: zapr.NewLogger(log.Desugar()),
128130
}
129131

130132
log.Info("Setting up unmanaged controller...")

0 commit comments

Comments
 (0)