kubernetes/pkg/controller/storageversionmigrator
Ogulcan Aydogan bb7ed59999
refactor: use AddEventHandlerWithOptions in storageversion controllers
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>
2026-06-10 22:57:54 +01:00
..
migrationrunner.go refactor: use AddEventHandlerWithOptions in storageversion controllers 2026-06-10 22:57:54 +01:00
migrationrunner_test.go
OWNERS
resourceversion.go refactor: use AddEventHandlerWithOptions in storageversion controllers 2026-06-10 22:57:54 +01:00
resourceversion_test.go
storageversionmigrator.go refactor: use AddEventHandlerWithOptions in storageversion controllers 2026-06-10 22:57:54 +01:00
storageversionmigrator_test.go
util.go