Skip to content

Commit 084b73e

Browse files
authored
Merge pull request #552 from mengqiy/fixsimplecontroller
🐛 fix SimpleController in builder test
2 parents 054ee41 + 11818d8 commit 084b73e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/builder/controller_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ var _ = Describe("application", func() {
116116
}
117117
return nil, fmt.Errorf("max concurrent reconcilers expected %d but found %d", maxConcurrentReconciles, options.MaxConcurrentReconciles)
118118
}
119-
instance, err := SimpleController().
119+
120+
By("creating a controller manager")
121+
m, err := manager.New(cfg, manager.Options{})
122+
Expect(err).NotTo(HaveOccurred())
123+
124+
instance, err := ControllerManagedBy(m).
120125
For(&appsv1.ReplicaSet{}).
121126
Owns(&appsv1.ReplicaSet{}).
122127
WithOptions(controller.Options{MaxConcurrentReconciles: maxConcurrentReconciles}).

0 commit comments

Comments
 (0)