From 98f35f31e72240ccf10ee0efc03e3bebadcbd076 Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Tue, 3 Apr 2018 16:30:09 -0700 Subject: [PATCH] update comments --- pkg/controller/eventhandlers/eventhandlers.go | 4 ++-- pkg/controller/types/types.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/eventhandlers/eventhandlers.go b/pkg/controller/eventhandlers/eventhandlers.go index f325c9d503..ff5090b6bc 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 79ea77fb46..29abaf2e48 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.