func (c *FakeReleaseManagers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ReleaseManager, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewPatchSubresourceAction(releasemanagersResource, c.ns, name, pt, data, subresources...), &v1alpha1.ReleaseManager{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.ReleaseManager), err
}
Patch applies the patch and returns the patched releaseManager.
package fake
import (
	v1alpha1 "go.medium.engineering/picchu/pkg/apis/picchu/v1alpha1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeReleaseManagers struct {
	Fake *FakePicchuV1alpha1
	ns   string
}
var releasemanagersResource = schema.GroupVersionResource{Group: "picchu.medium.engineering", Version: "v1alpha1", Resource: "releasemanagers"}
var releasemanagersKind = schema.GroupVersionKind{Group: "picchu.medium.engineering", Version: "v1alpha1", Kind: "ReleaseManager"}
func (c *FakeReleaseManagers) Get(name string, options v1.GetOptions) (result *v1alpha1.ReleaseManager, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(releasemanagersResource, c.ns, name), &v1alpha1.ReleaseManager{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.ReleaseManager), err
}
func (c *FakeReleaseManagers) List(opts v1.ListOptions) (result *v1alpha1.ReleaseManagerList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(releasemanagersResource, releasemanagersKind, c.ns, opts), &v1alpha1.ReleaseManagerList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.ReleaseManagerList{ListMeta: obj.(*v1alpha1.ReleaseManagerList).ListMeta}
	for _, item := range obj.(*v1alpha1.ReleaseManagerList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeReleaseManagers) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(releasemanagersResource, c.ns, opts))
}
func (c *FakeReleaseManagers) Create(releaseManager *v1alpha1.ReleaseManager) (result *v1alpha1.ReleaseManager, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(releasemanagersResource, c.ns, releaseManager), &v1alpha1.ReleaseManager{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.ReleaseManager), err
}
func (c *FakeReleaseManagers) Update(releaseManager *v1alpha1.ReleaseManager) (result *v1alpha1.ReleaseManager, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(releasemanagersResource, c.ns, releaseManager), &v1alpha1.ReleaseManager{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.ReleaseManager), err
}
func (c *FakeReleaseManagers) UpdateStatus(releaseManager *v1alpha1.ReleaseManager) (*v1alpha1.ReleaseManager, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(releasemanagersResource, "status", c.ns, releaseManager), &v1alpha1.ReleaseManager{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.ReleaseManager), err
}
func (c *FakeReleaseManagers) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(releasemanagersResource, c.ns, name), &v1alpha1.ReleaseManager{})
	return err
}
func (c *FakeReleaseManagers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(releasemanagersResource, c.ns, listOptions)
	_, err := c.Fake.Invokes(action, &v1alpha1.ReleaseManagerList{})
	return err
}