diff --git a/pkg/controller/eventhandlers/eventhandlers.go b/pkg/controller/eventhandlers/eventhandlers.go index f325c9d5033..ff5090b6bc2 100644 --- a/pkg/controller/eventhandlers/eventhandlers.go +++ b/pkg/controller/eventhandlers/eventhandlers.go @@ -28,7 +28,7 @@ import ( "k8s.io/client-go/util/workqueue" ) -// EventHandler accepts a workqueue and returns ResourceEventHandlerFuncs that enqueue messages to it +// EventHandler accepts a workqueue and returns ResourceEventHandler that enqueue messages to it // for add / update / delete events type EventHandler interface { Get(r workqueue.RateLimitingInterface) cache.ResourceEventHandler @@ -41,7 +41,7 @@ type MapAndEnqueue struct { Map func(interface{}) string } -// Get returns ResourceEventHandlerFuncs that Map an object to a Key and enqueue the key if it is non-empty +// Get returns ResourceEventHandler that Map an object to a Key and enqueue the key if it is non-empty func (mp MapAndEnqueue) Get(r workqueue.RateLimitingInterface) cache.ResourceEventHandler { // Enqueue the mapped key for updates to the object return cache.ResourceEventHandlerFuncs{ diff --git a/pkg/controller/types/types.go b/pkg/controller/types/types.go index 79ea77fb468..29abaf2e489 100644 --- a/pkg/controller/types/types.go +++ b/pkg/controller/types/types.go @@ -24,7 +24,7 @@ import ( // ReconcileFn takes the key of an object and reconciles its desired and observed state. type ReconcileFn func(ReconcileKey) error -// HandleFnProvider returns cache.ResourceEventHandlerFuncs that may enqueue messages +// HandleFnProvider returns cache.ResourceEventHandler that may enqueue messages type HandleFnProvider func(workqueue.RateLimitingInterface) cache.ResourceEventHandler // ReconcileKey provides a lookup key for a Kubernetes object.