Skip to content

Commit cb0d724

Browse files
committed
Fix manager start commands
1 parent 19bceca commit cb0d724

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cmd/olm/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func main() {
231231
}
232232

233233
// Start the controller manager
234-
if err := mgr.Start(ctx.Done()); err != nil {
234+
if err := mgr.Start(ctx); err != nil {
235235
logger.WithError(err).Fatal("controller manager stopped")
236236
}
237237

Diff for: pkg/controller/operators/suite_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ var _ = BeforeSuite(func() {
149149
defer GinkgoRecover()
150150

151151
By("Starting managed controllers")
152-
err = mgr.Start(stop)
152+
err := mgr.Start(ctx)
153153
Expect(err).ToNot(HaveOccurred())
154154
}()
155155

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")
157157

158158
k8sClient = mgr.GetClient()
159159
Expect(k8sClient).ToNot(BeNil())

0 commit comments

Comments
 (0)