Skip to content

Commit

Permalink
Merge pull request #957 from Random-Liu/cherrypick-#954-release-0.5
Browse files Browse the repository at this point in the history
Backport release-0.5: Fix scheme used by `DeleteAllOf` in the fake client.
  • Loading branch information
k8s-ci-robot authored May 20, 2020
2 parents 4715a5e + a437a65 commit f31eaf7
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 f31eaf7

Please sign in to comment.