Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 3d46aad

Browse files
committed
Fix wrappedClient to pass opts
Signed-off-by: Chris Privitere <[email protected]>
1 parent 5f886aa commit 3d46aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ func (wc *wrappedClient) DeleteAllOf(ctx context.Context, obj client.Object, opt
329329
return wc.client.DeleteAllOf(ctx, obj, opts...)
330330
}
331331

332-
func (wc *wrappedClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error {
332+
func (wc *wrappedClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error {
333333
err := wc.recordClusterNameForResource(obj)
334334
if err != nil {
335335
return err
336336
}
337337

338-
return wc.client.Get(ctx, key, obj)
338+
return wc.client.Get(ctx, key, obj, opts...)
339339
}
340340

341341
func (wc *wrappedClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error {

0 commit comments

Comments
 (0)