Skip to content

Commit d87c114

Browse files
committed
Plumb manager SetFields when Configuring controllers
Most fields are set explicitly when we create a new controller, but this one relied solely on the controller manager performing injection during the Add phase. Signed-off-by: Nic Cope <[email protected]>
1 parent f432261 commit d87c114

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/controller/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func Configure(name string, mgr manager.Manager, options Options) (Controller, e
111111
return workqueue.NewNamedRateLimitingQueue(options.RateLimiter, name)
112112
},
113113
MaxConcurrentReconciles: options.MaxConcurrentReconciles,
114+
SetFields: mgr.SetFields,
114115
Name: name,
115116
}
116117

0 commit comments

Comments
 (0)