func (c *FakeAddonsConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AddonsConfiguration, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewPatchSubresourceAction(addonsconfigurationsResource, c.ns, name, pt, data, subresources...), &v1alpha1.AddonsConfiguration{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.AddonsConfiguration), err
}
Patch applies the patch and returns the patched addonsConfiguration.
package fake
import (
	"context"
	v1alpha1 "github.com/kyma-project/helm-broker/pkg/apis/addons/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 FakeAddonsConfigurations struct {
	Fake *FakeAddonsV1alpha1
	ns   string
}
var addonsconfigurationsResource = schema.GroupVersionResource{Group: "addons.kyma-project.io", Version: "v1alpha1", Resource: "addonsconfigurations"}
var addonsconfigurationsKind = schema.GroupVersionKind{Group: "addons.kyma-project.io", Version: "v1alpha1", Kind: "AddonsConfiguration"}
func (c *FakeAddonsConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.AddonsConfiguration, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(addonsconfigurationsResource, c.ns, name), &v1alpha1.AddonsConfiguration{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.AddonsConfiguration), err
}
func (c *FakeAddonsConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AddonsConfigurationList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(addonsconfigurationsResource, addonsconfigurationsKind, c.ns, opts), &v1alpha1.AddonsConfigurationList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.AddonsConfigurationList{ListMeta: obj.(*v1alpha1.AddonsConfigurationList).ListMeta}
	for _, item := range obj.(*v1alpha1.AddonsConfigurationList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeAddonsConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(addonsconfigurationsResource, c.ns, opts))
}
func (c *FakeAddonsConfigurations) Create(ctx context.Context, addonsConfiguration *v1alpha1.AddonsConfiguration, opts v1.CreateOptions) (result *v1alpha1.AddonsConfiguration, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(addonsconfigurationsResource, c.ns, addonsConfiguration), &v1alpha1.AddonsConfiguration{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.AddonsConfiguration), err
}
func (c *FakeAddonsConfigurations) Update(ctx context.Context, addonsConfiguration *v1alpha1.AddonsConfiguration, opts v1.UpdateOptions) (result *v1alpha1.AddonsConfiguration, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(addonsconfigurationsResource, c.ns, addonsConfiguration), &v1alpha1.AddonsConfiguration{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.AddonsConfiguration), err
}
func (c *FakeAddonsConfigurations) UpdateStatus(ctx context.Context, addonsConfiguration *v1alpha1.AddonsConfiguration, opts v1.UpdateOptions) (*v1alpha1.AddonsConfiguration, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(addonsconfigurationsResource, "status", c.ns, addonsConfiguration), &v1alpha1.AddonsConfiguration{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.AddonsConfiguration), err
}
func (c *FakeAddonsConfigurations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(addonsconfigurationsResource, c.ns, name), &v1alpha1.AddonsConfiguration{})
	return err
}
func (c *FakeAddonsConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(addonsconfigurationsResource, c.ns, listOpts)
	_, err := c.Fake.Invokes(action, &v1alpha1.AddonsConfigurationList{})
	return err
}