Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#380 from mszostok/fix-fake-cli
Browse files Browse the repository at this point in the history
🐛Fix used scheme for fake client in List method
  • Loading branch information
k8s-ci-robot committed Apr 2, 2019
2 parents e4c40bc + 56dd24c commit b58294f
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 b58294f

Please sign in to comment.