Skip to content

Commit 6ad8ed2

Browse files
committed
Support option parameters for shorthand
1 parent 39bf45a commit 6ad8ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/testutil/envtest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ func startManager(t testing.TB, ctx context.Context, mgr manager.Manager) <-chan
251251
// cascading deletion, use kind based testing instead.
252252
//
253253
// Also, for more control, you can use the individual functions separately.
254-
func SetUpEnvtestManager(t testing.TB, scheme *runtime.Scheme) manager.Manager {
254+
func SetUpEnvtestManager(t testing.TB, scheme *runtime.Scheme, opts ...EnvtestOption) manager.Manager {
255255
t.Helper()
256256

257-
cfg := SetUpEnvtest(t)
257+
cfg := SetUpEnvtest(t, opts...)
258258
mgr := SetUpManager(t, cfg, scheme)
259259
StartManager(t, mgr)
260260

0 commit comments

Comments
 (0)