Skip to content

Commit

Permalink
Fix scheme used by DeleteAllOf in the fake client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Random-Liu committed May 20, 2020
1 parent 67ee49a commit a437a65
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 @@ -238,7 +238,7 @@ func (c *fakeClient) Delete(ctx context.Context, obj runtime.Object, opts ...cli
}

func (c *fakeClient) DeleteAllOf(ctx context.Context, obj runtime.Object, opts ...client.DeleteAllOfOption) 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 a437a65

Please sign in to comment.