diff --git a/.golangci.yaml b/.golangci.yaml index 4e6b900d65..58742a632a 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -31,6 +31,7 @@ linters: - copyloopvar - dupword - durationcheck + - fatcontext - ginkgolinter - gocritic - goimports diff --git a/pkg/controller/core/workload_controller.go b/pkg/controller/core/workload_controller.go index 95e8649c2b..052076189e 100644 --- a/pkg/controller/core/workload_controller.go +++ b/pkg/controller/core/workload_controller.go @@ -944,7 +944,7 @@ func (w *workloadQueueHandler) queueReconcileForWorkloadsOfClusterQueue(ctx cont } for _, lq := range lst.Items { log := log.WithValues("localQueue", klog.KObj(&lq)) - ctx = ctrl.LoggerInto(ctx, log) + ctx := ctrl.LoggerInto(ctx, log) w.queueReconcileForWorkloadsOfLocalQueue(ctx, &lq, wq) } }