code: func (c *FakeCustomResourceDefinitions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apiextensions.CustomResourceDefinition, err error) {
  	obj, err := c.Fake.
  		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, name, pt, data, subresources...), &apiextensions.CustomResourceDefinition{})
  	if obj == nil {
  		return nil, err
  	}
  	return obj.(*apiextensions.CustomResourceDefinition), err
  }
docs: // Patch applies the patch and returns the patched customResourceDefinition.