Skip to content

Commit a093650

Browse files
committed
docs: fix spelling of function EnqueueRequestsFromMapFunc
Other Enqueue... functions are singular, but this one is plural
1 parent d90bbc6 commit a093650

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Watching and EventHandling
171171
172172
Controllers may Watch multiple Kinds of objects (e.g. Pods, ReplicaSets and Deployments), but they reconcile
173173
only a single Type. When one Type of object must be updated in response to changes in another Type of object,
174-
an EnqueueRequestFromMapFunc may be used to map events from one type to another. e.g. Respond to a cluster resize
174+
an EnqueueRequestsFromMapFunc may be used to map events from one type to another. e.g. Respond to a cluster resize
175175
event (add / delete Node) by re-reconciling all instances of some API.
176176
177177
A Deployment Controller might use an EnqueueRequestForObject and EnqueueRequestForOwner to:

pkg/handler/eventhandler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
// * Use EnqueueRequestForOwner to reconcile the owner of the object the event is for
3434
// - do this for events for the types the Controller creates. (e.g. ReplicaSets created by a Deployment Controller)
3535
//
36-
// * Use EnqueueRequestFromMapFunc to transform an event for an object to a reconcile of an object
36+
// * Use EnqueueRequestsFromMapFunc to transform an event for an object to a reconcile of an object
3737
// of a different type - do this for events for types the Controller may be interested in, but doesn't create.
3838
// (e.g. If Foo responds to cluster size events, map Node events to Foo objects.)
3939
//

0 commit comments

Comments
 (0)