Skip to content

Commit

Permalink
Fix used scheme for fake client in List method
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok authored and anthonyho007 committed Apr 12, 2019
1 parent 9138bb0 commit 310aa20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/fake/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (c *fakeClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.
}

func (c *fakeClient) List(ctx context.Context, obj runtime.Object, opts ...client.ListOptionFunc) error {
gvk, err := apiutil.GVKForObject(obj, scheme.Scheme)
gvk, err := apiutil.GVKForObject(obj, c.scheme)
if err != nil {
return err
}
Expand Down

0 comments on commit 310aa20

Please sign in to comment.