mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-07-08 09:21:31 -04:00
Migrate plain AddEventHandler calls in the storageversion GC and
migrator controllers to AddEventHandlerWithOptions with
cache.HandlerOptions{Logger: &logger} so the contextual logger is
propagated into the informer handler goroutines.
The logger is already in scope at each call site (klog.FromContext(ctx)),
and the handler functions already accept a klog.Logger argument, so
this is a pure API migration with no behaviour change.
Fixes: https://github.com/kubernetes/kubernetes/issues/126379
Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
|
||
|---|---|---|
| .. | ||
| gc_controller.go | ||
| gc_controller_test.go | ||
| OWNERS | ||