File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ func main() {
231
231
}
232
232
233
233
// Start the controller manager
234
- if err := mgr .Start (ctx . Done () ); err != nil {
234
+ if err := mgr .Start (ctx ); err != nil {
235
235
logger .WithError (err ).Fatal ("controller manager stopped" )
236
236
}
237
237
Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ var _ = BeforeSuite(func() {
149
149
defer GinkgoRecover ()
150
150
151
151
By ("Starting managed controllers" )
152
- err = mgr .Start (stop )
152
+ err : = mgr .Start (ctx )
153
153
Expect (err ).ToNot (HaveOccurred ())
154
154
}()
155
155
156
- Expect (mgr .GetCache ().WaitForCacheSync (stop )).To (BeTrue (), "Cache sync failed on startup" )
156
+ Expect (mgr .GetCache ().WaitForCacheSync (ctx )).To (BeTrue (), "Cache sync failed on startup" )
157
157
158
158
k8sClient = mgr .GetClient ()
159
159
Expect (k8sClient ).ToNot (BeNil ())
You can’t perform that action at this time.
0 commit comments