Skip to content

Commit 98f35f3

Browse files
committed
update comments
1 parent 4d976f5 commit 98f35f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/controller/eventhandlers/eventhandlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"k8s.io/client-go/util/workqueue"
2929
)
3030

31-
// EventHandler accepts a workqueue and returns ResourceEventHandlerFuncs that enqueue messages to it
31+
// EventHandler accepts a workqueue and returns ResourceEventHandler that enqueue messages to it
3232
// for add / update / delete events
3333
type EventHandler interface {
3434
Get(r workqueue.RateLimitingInterface) cache.ResourceEventHandler
@@ -41,7 +41,7 @@ type MapAndEnqueue struct {
4141
Map func(interface{}) string
4242
}
4343

44-
// Get returns ResourceEventHandlerFuncs that Map an object to a Key and enqueue the key if it is non-empty
44+
// Get returns ResourceEventHandler that Map an object to a Key and enqueue the key if it is non-empty
4545
func (mp MapAndEnqueue) Get(r workqueue.RateLimitingInterface) cache.ResourceEventHandler {
4646
// Enqueue the mapped key for updates to the object
4747
return cache.ResourceEventHandlerFuncs{

pkg/controller/types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// ReconcileFn takes the key of an object and reconciles its desired and observed state.
2525
type ReconcileFn func(ReconcileKey) error
2626

27-
// HandleFnProvider returns cache.ResourceEventHandlerFuncs that may enqueue messages
27+
// HandleFnProvider returns cache.ResourceEventHandler that may enqueue messages
2828
type HandleFnProvider func(workqueue.RateLimitingInterface) cache.ResourceEventHandler
2929

3030
// ReconcileKey provides a lookup key for a Kubernetes object.

0 commit comments

Comments
 (0)