Generate code
This commit is contained in:
		| @@ -21,7 +21,10 @@ package applyconfiguration | |||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1" | 	v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1" | ||||||
| 	crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1" | 	crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1" | ||||||
|  | 	internal "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/internal" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||||
|  | 	testing "k8s.io/client-go/testing" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no | // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no | ||||||
| @@ -39,3 +42,7 @@ func ForKind(kind schema.GroupVersionKind) interface{} { | |||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter { | ||||||
|  | 	return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()} | ||||||
|  | } | ||||||
|   | |||||||
| @@ -19,6 +19,7 @@ limitations under the License. | |||||||
| package fake | package fake | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
|  | 	applyconfiguration "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration" | ||||||
| 	clientset "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned" | 	clientset "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned" | ||||||
| 	crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1" | 	crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1" | ||||||
| 	fakecrv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake" | 	fakecrv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake" | ||||||
| @@ -31,8 +32,12 @@ import ( | |||||||
|  |  | ||||||
| // NewSimpleClientset returns a clientset that will respond with the provided objects. | // NewSimpleClientset returns a clientset that will respond with the provided objects. | ||||||
| // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | ||||||
| // without applying any validations and/or defaults. It shouldn't be considered a replacement | // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement | ||||||
| // for a real clientset and is mostly useful in simple unit tests. | // for a real clientset and is mostly useful in simple unit tests. | ||||||
|  | // | ||||||
|  | // DEPRECATED: NewClientset replaces this with support for field management, which significantly improves | ||||||
|  | // server side apply testing. NewClientset is only available when apply configurations are generated (e.g. | ||||||
|  | // via --with-applyconfig). | ||||||
| func NewSimpleClientset(objects ...runtime.Object) *Clientset { | func NewSimpleClientset(objects ...runtime.Object) *Clientset { | ||||||
| 	o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) | 	o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) | ||||||
| 	for _, obj := range objects { | 	for _, obj := range objects { | ||||||
| @@ -74,6 +79,38 @@ func (c *Clientset) Tracker() testing.ObjectTracker { | |||||||
| 	return c.tracker | 	return c.tracker | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // NewClientset returns a clientset that will respond with the provided objects. | ||||||
|  | // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | ||||||
|  | // without applying any validations and/or defaults. It shouldn't be considered a replacement | ||||||
|  | // for a real clientset and is mostly useful in simple unit tests. | ||||||
|  | func NewClientset(objects ...runtime.Object) *Clientset { | ||||||
|  | 	o := testing.NewFieldManagedObjectTracker( | ||||||
|  | 		scheme, | ||||||
|  | 		codecs.UniversalDecoder(), | ||||||
|  | 		applyconfiguration.NewTypeConverter(scheme), | ||||||
|  | 	) | ||||||
|  | 	for _, obj := range objects { | ||||||
|  | 		if err := o.Add(obj); err != nil { | ||||||
|  | 			panic(err) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  |  | ||||||
|  | 	cs := &Clientset{tracker: o} | ||||||
|  | 	cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} | ||||||
|  | 	cs.AddReactor("*", "*", testing.ObjectReaction(o)) | ||||||
|  | 	cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { | ||||||
|  | 		gvr := action.GetResource() | ||||||
|  | 		ns := action.GetNamespace() | ||||||
|  | 		watch, err := o.Watch(gvr, ns) | ||||||
|  | 		if err != nil { | ||||||
|  | 			return false, nil, err | ||||||
|  | 		} | ||||||
|  | 		return true, watch, nil | ||||||
|  | 	}) | ||||||
|  |  | ||||||
|  | 	return cs | ||||||
|  | } | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
| 	_ clientset.Interface = &Clientset{} | 	_ clientset.Interface = &Clientset{} | ||||||
| 	_ testing.FakeClient  = &Clientset{} | 	_ testing.FakeClient  = &Clientset{} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var examplesKind = v1.SchemeGroupVersion.WithKind("Example") | |||||||
| func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) { | func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) { | ||||||
| 	emptyResult := &v1.Example{} | 	emptyResult := &v1.Example{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(examplesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(examplesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetO | |||||||
| func (c *FakeExamples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ExampleList, err error) { | func (c *FakeExamples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ExampleList, err error) { | ||||||
| 	emptyResult := &v1.ExampleList{} | 	emptyResult := &v1.ExampleList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(examplesResource, examplesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(examplesResource, examplesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeExamples) List(ctx context.Context, opts metav1.ListOptions) (resul | |||||||
| // Watch returns a watch.Interface that watches the requested examples. | // Watch returns a watch.Interface that watches the requested examples. | ||||||
| func (c *FakeExamples) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeExamples) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(examplesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(examplesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeExamples) Watch(ctx context.Context, opts metav1.ListOptions) (watc | |||||||
| func (c *FakeExamples) Create(ctx context.Context, example *v1.Example, opts metav1.CreateOptions) (result *v1.Example, err error) { | func (c *FakeExamples) Create(ctx context.Context, example *v1.Example, opts metav1.CreateOptions) (result *v1.Example, err error) { | ||||||
| 	emptyResult := &v1.Example{} | 	emptyResult := &v1.Example{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(examplesResource, c.ns, example), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(examplesResource, c.ns, example, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeExamples) Create(ctx context.Context, example *v1.Example, opts met | |||||||
| func (c *FakeExamples) Update(ctx context.Context, example *v1.Example, opts metav1.UpdateOptions) (result *v1.Example, err error) { | func (c *FakeExamples) Update(ctx context.Context, example *v1.Example, opts metav1.UpdateOptions) (result *v1.Example, err error) { | ||||||
| 	emptyResult := &v1.Example{} | 	emptyResult := &v1.Example{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(examplesResource, c.ns, example), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(examplesResource, c.ns, example, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeExamples) Delete(ctx context.Context, name string, opts metav1.Dele | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeExamples) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeExamples) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(examplesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(examplesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ExampleList{}) | 	_, err := c.Fake.Invokes(action, &v1.ExampleList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeExamples) DeleteCollection(ctx context.Context, opts metav1.DeleteO | |||||||
| func (c *FakeExamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error) { | func (c *FakeExamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error) { | ||||||
| 	emptyResult := &v1.Example{} | 	emptyResult := &v1.Example{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(examplesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(examplesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeExamples) Apply(ctx context.Context, example *crv1.ExampleApplyConf | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Example{} | 	emptyResult := &v1.Example{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(examplesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(examplesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -23,7 +23,10 @@ import ( | |||||||
| 	v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" | 	v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" | ||||||
| 	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1" | 	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1" | ||||||
| 	apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1" | 	apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1" | ||||||
|  | 	internal "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/internal" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||||
|  | 	testing "k8s.io/client-go/testing" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no | // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no | ||||||
| @@ -107,3 +110,7 @@ func ForKind(kind schema.GroupVersionKind) interface{} { | |||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter { | ||||||
|  | 	return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()} | ||||||
|  | } | ||||||
|   | |||||||
| @@ -19,6 +19,7 @@ limitations under the License. | |||||||
| package fake | package fake | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
|  | 	applyconfiguration "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration" | ||||||
| 	clientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" | 	clientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" | ||||||
| 	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1" | 	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1" | ||||||
| 	fakeapiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake" | 	fakeapiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake" | ||||||
| @@ -33,8 +34,12 @@ import ( | |||||||
|  |  | ||||||
| // NewSimpleClientset returns a clientset that will respond with the provided objects. | // NewSimpleClientset returns a clientset that will respond with the provided objects. | ||||||
| // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | ||||||
| // without applying any validations and/or defaults. It shouldn't be considered a replacement | // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement | ||||||
| // for a real clientset and is mostly useful in simple unit tests. | // for a real clientset and is mostly useful in simple unit tests. | ||||||
|  | // | ||||||
|  | // DEPRECATED: NewClientset replaces this with support for field management, which significantly improves | ||||||
|  | // server side apply testing. NewClientset is only available when apply configurations are generated (e.g. | ||||||
|  | // via --with-applyconfig). | ||||||
| func NewSimpleClientset(objects ...runtime.Object) *Clientset { | func NewSimpleClientset(objects ...runtime.Object) *Clientset { | ||||||
| 	o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) | 	o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) | ||||||
| 	for _, obj := range objects { | 	for _, obj := range objects { | ||||||
| @@ -76,6 +81,38 @@ func (c *Clientset) Tracker() testing.ObjectTracker { | |||||||
| 	return c.tracker | 	return c.tracker | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // NewClientset returns a clientset that will respond with the provided objects. | ||||||
|  | // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | ||||||
|  | // without applying any validations and/or defaults. It shouldn't be considered a replacement | ||||||
|  | // for a real clientset and is mostly useful in simple unit tests. | ||||||
|  | func NewClientset(objects ...runtime.Object) *Clientset { | ||||||
|  | 	o := testing.NewFieldManagedObjectTracker( | ||||||
|  | 		scheme, | ||||||
|  | 		codecs.UniversalDecoder(), | ||||||
|  | 		applyconfiguration.NewTypeConverter(scheme), | ||||||
|  | 	) | ||||||
|  | 	for _, obj := range objects { | ||||||
|  | 		if err := o.Add(obj); err != nil { | ||||||
|  | 			panic(err) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  |  | ||||||
|  | 	cs := &Clientset{tracker: o} | ||||||
|  | 	cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} | ||||||
|  | 	cs.AddReactor("*", "*", testing.ObjectReaction(o)) | ||||||
|  | 	cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { | ||||||
|  | 		gvr := action.GetResource() | ||||||
|  | 		ns := action.GetNamespace() | ||||||
|  | 		watch, err := o.Watch(gvr, ns) | ||||||
|  | 		if err != nil { | ||||||
|  | 			return false, nil, err | ||||||
|  | 		} | ||||||
|  | 		return true, watch, nil | ||||||
|  | 	}) | ||||||
|  |  | ||||||
|  | 	return cs | ||||||
|  | } | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
| 	_ clientset.Interface = &Clientset{} | 	_ clientset.Interface = &Clientset{} | ||||||
| 	_ testing.FakeClient  = &Clientset{} | 	_ testing.FakeClient  = &Clientset{} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var customresourcedefinitionsKind = v1.SchemeGroupVersion.WithKind("CustomResour | |||||||
| func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(customresourcedefinitionsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, op | |||||||
| func (c *FakeCustomResourceDefinitions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) { | func (c *FakeCustomResourceDefinitions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) { | ||||||
| 	emptyResult := &v1.CustomResourceDefinitionList{} | 	emptyResult := &v1.CustomResourceDefinitionList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(customresourcedefinitionsResource, customresourcedefinitionsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(customresourcedefinitionsResource, customresourcedefinitionsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeCustomResourceDefinitions) List(ctx context.Context, opts metav1.Li | |||||||
| // Watch returns a watch.Interface that watches the requested customResourceDefinitions. | // Watch returns a watch.Interface that watches the requested customResourceDefinitions. | ||||||
| func (c *FakeCustomResourceDefinitions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeCustomResourceDefinitions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(customresourcedefinitionsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(customresourcedefinitionsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any. | // Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any. | ||||||
| func (c *FakeCustomResourceDefinitions) Create(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.CreateOptions) (result *v1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Create(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.CreateOptions) (result *v1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(customresourcedefinitionsResource, customResourceDefinition), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(customresourcedefinitionsResource, customResourceDefinition, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeCustomResourceDefinitions) Create(ctx context.Context, customResour | |||||||
| func (c *FakeCustomResourceDefinitions) Update(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (result *v1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Update(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (result *v1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(customresourcedefinitionsResource, customResourceDefinition), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(customresourcedefinitionsResource, customResourceDefinition, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeCustomResourceDefinitions) Update(ctx context.Context, customResour | |||||||
| func (c *FakeCustomResourceDefinitions) UpdateStatus(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (result *v1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) UpdateStatus(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (result *v1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(customresourcedefinitionsResource, "status", customResourceDefinition), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(customresourcedefinitionsResource, "status", customResourceDefinition, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeCustomResourceDefinitions) Delete(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeCustomResourceDefinitions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeCustomResourceDefinitions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(customresourcedefinitionsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(customresourcedefinitionsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.CustomResourceDefinitionList{}) | 	_, err := c.Fake.Invokes(action, &v1.CustomResourceDefinitionList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeCustomResourceDefinitions) DeleteCollection(ctx context.Context, op | |||||||
| func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(customresourcedefinitionsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeCustomResourceDefinitions) Apply(ctx context.Context, customResourc | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(customresourcedefinitionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeCustomResourceDefinitions) ApplyStatus(ctx context.Context, customR | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.CustomResourceDefinition{} | 	emptyResult := &v1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(customresourcedefinitionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var customresourcedefinitionsKind = v1beta1.SchemeGroupVersion.WithKind("CustomR | |||||||
| func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(customresourcedefinitionsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, op | |||||||
| func (c *FakeCustomResourceDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) { | func (c *FakeCustomResourceDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) { | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinitionList{} | 	emptyResult := &v1beta1.CustomResourceDefinitionList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(customresourcedefinitionsResource, customresourcedefinitionsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(customresourcedefinitionsResource, customresourcedefinitionsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeCustomResourceDefinitions) List(ctx context.Context, opts v1.ListOp | |||||||
| // Watch returns a watch.Interface that watches the requested customResourceDefinitions. | // Watch returns a watch.Interface that watches the requested customResourceDefinitions. | ||||||
| func (c *FakeCustomResourceDefinitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeCustomResourceDefinitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(customresourcedefinitionsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(customresourcedefinitionsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any. | // Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any. | ||||||
| func (c *FakeCustomResourceDefinitions) Create(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.CreateOptions) (result *v1beta1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Create(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.CreateOptions) (result *v1beta1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(customresourcedefinitionsResource, customResourceDefinition), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(customresourcedefinitionsResource, customResourceDefinition, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeCustomResourceDefinitions) Create(ctx context.Context, customResour | |||||||
| func (c *FakeCustomResourceDefinitions) Update(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (result *v1beta1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Update(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (result *v1beta1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(customresourcedefinitionsResource, customResourceDefinition), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(customresourcedefinitionsResource, customResourceDefinition, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeCustomResourceDefinitions) Update(ctx context.Context, customResour | |||||||
| func (c *FakeCustomResourceDefinitions) UpdateStatus(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (result *v1beta1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) UpdateStatus(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (result *v1beta1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(customresourcedefinitionsResource, "status", customResourceDefinition), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(customresourcedefinitionsResource, "status", customResourceDefinition, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeCustomResourceDefinitions) Delete(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeCustomResourceDefinitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeCustomResourceDefinitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(customresourcedefinitionsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(customresourcedefinitionsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.CustomResourceDefinitionList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.CustomResourceDefinitionList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeCustomResourceDefinitions) DeleteCollection(ctx context.Context, op | |||||||
| func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) { | func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) { | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(customresourcedefinitionsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeCustomResourceDefinitions) Apply(ctx context.Context, customResourc | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(customresourcedefinitionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeCustomResourceDefinitions) ApplyStatus(ctx context.Context, customR | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.CustomResourceDefinition{} | 	emptyResult := &v1beta1.CustomResourceDefinition{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(customresourcedefinitionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -68,6 +68,7 @@ import ( | |||||||
| 	storagev1beta1 "k8s.io/api/storage/v1beta1" | 	storagev1beta1 "k8s.io/api/storage/v1beta1" | ||||||
| 	storagemigrationv1alpha1 "k8s.io/api/storagemigration/v1alpha1" | 	storagemigrationv1alpha1 "k8s.io/api/storagemigration/v1alpha1" | ||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||||
| 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | ||||||
| 	admissionregistrationv1alpha1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1" | 	admissionregistrationv1alpha1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1" | ||||||
| @@ -98,6 +99,7 @@ import ( | |||||||
| 	applyconfigurationsflowcontrolv1beta2 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta2" | 	applyconfigurationsflowcontrolv1beta2 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta2" | ||||||
| 	flowcontrolv1beta3 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3" | 	flowcontrolv1beta3 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3" | ||||||
| 	applyconfigurationsimagepolicyv1alpha1 "k8s.io/client-go/applyconfigurations/imagepolicy/v1alpha1" | 	applyconfigurationsimagepolicyv1alpha1 "k8s.io/client-go/applyconfigurations/imagepolicy/v1alpha1" | ||||||
|  | 	internal "k8s.io/client-go/applyconfigurations/internal" | ||||||
| 	applyconfigurationsmetav1 "k8s.io/client-go/applyconfigurations/meta/v1" | 	applyconfigurationsmetav1 "k8s.io/client-go/applyconfigurations/meta/v1" | ||||||
| 	applyconfigurationsnetworkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | 	applyconfigurationsnetworkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | ||||||
| 	applyconfigurationsnetworkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" | 	applyconfigurationsnetworkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" | ||||||
| @@ -118,6 +120,7 @@ import ( | |||||||
| 	applyconfigurationsstoragev1alpha1 "k8s.io/client-go/applyconfigurations/storage/v1alpha1" | 	applyconfigurationsstoragev1alpha1 "k8s.io/client-go/applyconfigurations/storage/v1alpha1" | ||||||
| 	applyconfigurationsstoragev1beta1 "k8s.io/client-go/applyconfigurations/storage/v1beta1" | 	applyconfigurationsstoragev1beta1 "k8s.io/client-go/applyconfigurations/storage/v1beta1" | ||||||
| 	applyconfigurationsstoragemigrationv1alpha1 "k8s.io/client-go/applyconfigurations/storagemigration/v1alpha1" | 	applyconfigurationsstoragemigrationv1alpha1 "k8s.io/client-go/applyconfigurations/storagemigration/v1alpha1" | ||||||
|  | 	testing "k8s.io/client-go/testing" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no | // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no | ||||||
| @@ -1715,3 +1718,7 @@ func ForKind(kind schema.GroupVersionKind) interface{} { | |||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter { | ||||||
|  | 	return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()} | ||||||
|  | } | ||||||
|   | |||||||
| @@ -21,6 +21,7 @@ package fake | |||||||
| import ( | import ( | ||||||
| 	"k8s.io/apimachinery/pkg/runtime" | 	"k8s.io/apimachinery/pkg/runtime" | ||||||
| 	"k8s.io/apimachinery/pkg/watch" | 	"k8s.io/apimachinery/pkg/watch" | ||||||
|  | 	applyconfigurations "k8s.io/client-go/applyconfigurations" | ||||||
| 	"k8s.io/client-go/discovery" | 	"k8s.io/client-go/discovery" | ||||||
| 	fakediscovery "k8s.io/client-go/discovery/fake" | 	fakediscovery "k8s.io/client-go/discovery/fake" | ||||||
| 	clientset "k8s.io/client-go/kubernetes" | 	clientset "k8s.io/client-go/kubernetes" | ||||||
| @@ -133,8 +134,12 @@ import ( | |||||||
|  |  | ||||||
| // NewSimpleClientset returns a clientset that will respond with the provided objects. | // NewSimpleClientset returns a clientset that will respond with the provided objects. | ||||||
| // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | ||||||
| // without applying any validations and/or defaults. It shouldn't be considered a replacement | // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement | ||||||
| // for a real clientset and is mostly useful in simple unit tests. | // for a real clientset and is mostly useful in simple unit tests. | ||||||
|  | // | ||||||
|  | // DEPRECATED: NewClientset replaces this with support for field management, which significantly improves | ||||||
|  | // server side apply testing. NewClientset is only available when apply configurations are generated (e.g. | ||||||
|  | // via --with-applyconfig). | ||||||
| func NewSimpleClientset(objects ...runtime.Object) *Clientset { | func NewSimpleClientset(objects ...runtime.Object) *Clientset { | ||||||
| 	o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) | 	o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) | ||||||
| 	for _, obj := range objects { | 	for _, obj := range objects { | ||||||
| @@ -176,6 +181,38 @@ func (c *Clientset) Tracker() testing.ObjectTracker { | |||||||
| 	return c.tracker | 	return c.tracker | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // NewClientset returns a clientset that will respond with the provided objects. | ||||||
|  | // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, | ||||||
|  | // without applying any validations and/or defaults. It shouldn't be considered a replacement | ||||||
|  | // for a real clientset and is mostly useful in simple unit tests. | ||||||
|  | func NewClientset(objects ...runtime.Object) *Clientset { | ||||||
|  | 	o := testing.NewFieldManagedObjectTracker( | ||||||
|  | 		scheme, | ||||||
|  | 		codecs.UniversalDecoder(), | ||||||
|  | 		applyconfigurations.NewTypeConverter(scheme), | ||||||
|  | 	) | ||||||
|  | 	for _, obj := range objects { | ||||||
|  | 		if err := o.Add(obj); err != nil { | ||||||
|  | 			panic(err) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  |  | ||||||
|  | 	cs := &Clientset{tracker: o} | ||||||
|  | 	cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} | ||||||
|  | 	cs.AddReactor("*", "*", testing.ObjectReaction(o)) | ||||||
|  | 	cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { | ||||||
|  | 		gvr := action.GetResource() | ||||||
|  | 		ns := action.GetNamespace() | ||||||
|  | 		watch, err := o.Watch(gvr, ns) | ||||||
|  | 		if err != nil { | ||||||
|  | 			return false, nil, err | ||||||
|  | 		} | ||||||
|  | 		return true, watch, nil | ||||||
|  | 	}) | ||||||
|  |  | ||||||
|  | 	return cs | ||||||
|  | } | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
| 	_ clientset.Interface = &Clientset{} | 	_ clientset.Interface = &Clientset{} | ||||||
| 	_ testing.FakeClient  = &Clientset{} | 	_ testing.FakeClient  = &Clientset{} | ||||||
|   | |||||||
| @@ -18,10 +18,13 @@ package fake | |||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"context" | 	"context" | ||||||
|  | 	"github.com/stretchr/testify/assert" | ||||||
|  | 	"testing" | ||||||
|  |  | ||||||
| 	v1 "k8s.io/api/core/v1" | 	v1 "k8s.io/api/core/v1" | ||||||
| 	policy "k8s.io/api/policy/v1" | 	policy "k8s.io/api/policy/v1" | ||||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| 	"testing" | 	v1ac "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| func TestNewSimpleClientset(t *testing.T) { | func TestNewSimpleClientset(t *testing.T) { | ||||||
| @@ -56,3 +59,86 @@ func TestNewSimpleClientset(t *testing.T) { | |||||||
| 		t.Logf("TestNewSimpleClientset() res = %v", pods) | 		t.Logf("TestNewSimpleClientset() res = %v", pods) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func TestManagedFieldClientset(t *testing.T) { | ||||||
|  | 	client := NewClientset() | ||||||
|  | 	name := "pod-1" | ||||||
|  | 	namespace := "default" | ||||||
|  | 	cm, err := client.CoreV1().ConfigMaps("default").Create(context.Background(), | ||||||
|  | 		&v1.ConfigMap{ | ||||||
|  | 			ObjectMeta: meta_v1.ObjectMeta{Name: name, Namespace: namespace}, | ||||||
|  | 			Data:       map[string]string{"k0": "v0"}, | ||||||
|  | 		}, meta_v1.CreateOptions{FieldManager: "test-manager-0"}) | ||||||
|  | 	if err != nil { | ||||||
|  | 		t.Errorf("Failed to create pod: %v", err) | ||||||
|  | 	} | ||||||
|  | 	assert.Equal(t, map[string]string{"k0": "v0"}, cm.Data) | ||||||
|  |  | ||||||
|  | 	// Apply with test-manager-1 | ||||||
|  | 	// Expect data to be shared with initial create | ||||||
|  | 	cm, err = client.CoreV1().ConfigMaps("default").Apply(context.Background(), | ||||||
|  | 		v1ac.ConfigMap(name, namespace).WithData(map[string]string{"k1": "v1"}), | ||||||
|  | 		meta_v1.ApplyOptions{FieldManager: "test-manager-1"}) | ||||||
|  | 	if err != nil { | ||||||
|  | 		t.Errorf("Failed to create pod: %v", err) | ||||||
|  | 	} | ||||||
|  | 	assert.Equal(t, map[string]string{"k0": "v0", "k1": "v1"}, cm.Data) | ||||||
|  |  | ||||||
|  | 	// Apply conflicting with test-manager-2, expect apply to fail | ||||||
|  | 	_, err = client.CoreV1().ConfigMaps("default").Apply(context.Background(), | ||||||
|  | 		v1ac.ConfigMap(name, namespace).WithData(map[string]string{"k1": "xyz"}), | ||||||
|  | 		meta_v1.ApplyOptions{FieldManager: "test-manager-2"}) | ||||||
|  | 	if assert.Error(t, err) { | ||||||
|  | 		assert.Equal(t, "Apply failed with 1 conflict: conflict with \"test-manager-1\": .data.k1", err.Error()) | ||||||
|  | 	} | ||||||
|  |  | ||||||
|  | 	// Apply with test-manager-2 | ||||||
|  | 	// Expect data to be shared with initial create and test-manager-1 | ||||||
|  | 	cm, err = client.CoreV1().ConfigMaps("default").Apply(context.Background(), | ||||||
|  | 		v1ac.ConfigMap(name, namespace).WithData(map[string]string{"k2": "v2"}), | ||||||
|  | 		meta_v1.ApplyOptions{FieldManager: "test-manager-2"}) | ||||||
|  | 	if err != nil { | ||||||
|  | 		t.Errorf("Failed to create pod: %v", err) | ||||||
|  | 	} | ||||||
|  | 	assert.Equal(t, map[string]string{"k0": "v0", "k1": "v1", "k2": "v2"}, cm.Data) | ||||||
|  |  | ||||||
|  | 	// Apply with test-manager-1 | ||||||
|  | 	// Expect owned data to be updated | ||||||
|  | 	cm, err = client.CoreV1().ConfigMaps("default").Apply(context.Background(), | ||||||
|  | 		v1ac.ConfigMap(name, namespace).WithData(map[string]string{"k1": "v101"}), | ||||||
|  | 		meta_v1.ApplyOptions{FieldManager: "test-manager-1"}) | ||||||
|  | 	if err != nil { | ||||||
|  | 		t.Errorf("Failed to create pod: %v", err) | ||||||
|  | 	} | ||||||
|  | 	assert.Equal(t, map[string]string{"k0": "v0", "k1": "v101", "k2": "v2"}, cm.Data) | ||||||
|  |  | ||||||
|  | 	// Force apply with test-manager-2 | ||||||
|  | 	// Expect data owned by test-manager-1 to be updated, expect data already owned but not in apply configuration to be removed | ||||||
|  | 	cm, err = client.CoreV1().ConfigMaps("default").Apply(context.Background(), | ||||||
|  | 		v1ac.ConfigMap(name, namespace).WithData(map[string]string{"k1": "v202"}), | ||||||
|  | 		meta_v1.ApplyOptions{FieldManager: "test-manager-2", Force: true}) | ||||||
|  | 	if err != nil { | ||||||
|  | 		t.Errorf("Failed to create pod: %v", err) | ||||||
|  | 	} | ||||||
|  | 	assert.Equal(t, map[string]string{"k0": "v0", "k1": "v202"}, cm.Data) | ||||||
|  |  | ||||||
|  | 	// Update with test-manager-1 to perform a force update of the entire resource | ||||||
|  | 	cm, err = client.CoreV1().ConfigMaps("default").Update(context.Background(), | ||||||
|  | 		&v1.ConfigMap{ | ||||||
|  | 			TypeMeta: meta_v1.TypeMeta{ | ||||||
|  | 				APIVersion: "v1", | ||||||
|  | 				Kind:       "ConfigMap", | ||||||
|  | 			}, | ||||||
|  | 			ObjectMeta: meta_v1.ObjectMeta{ | ||||||
|  | 				Name:      name, | ||||||
|  | 				Namespace: namespace, | ||||||
|  | 			}, | ||||||
|  | 			Data: map[string]string{ | ||||||
|  | 				"k99": "v99", | ||||||
|  | 			}, | ||||||
|  | 		}, meta_v1.UpdateOptions{FieldManager: "test-manager-0"}) | ||||||
|  | 	if err != nil { | ||||||
|  | 		t.Errorf("Failed to update pod: %v", err) | ||||||
|  | 	} | ||||||
|  | 	assert.Equal(t, map[string]string{"k99": "v99"}, cm.Data) | ||||||
|  | } | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var mutatingwebhookconfigurationsKind = v1.SchemeGroupVersion.WithKind("Mutating | |||||||
| func (c *FakeMutatingWebhookConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.MutatingWebhookConfiguration{} | 	emptyResult := &v1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(mutatingwebhookconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(mutatingwebhookconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeMutatingWebhookConfigurations) Get(ctx context.Context, name string | |||||||
| func (c *FakeMutatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MutatingWebhookConfigurationList, err error) { | func (c *FakeMutatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MutatingWebhookConfigurationList, err error) { | ||||||
| 	emptyResult := &v1.MutatingWebhookConfigurationList{} | 	emptyResult := &v1.MutatingWebhookConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(mutatingwebhookconfigurationsResource, mutatingwebhookconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(mutatingwebhookconfigurationsResource, mutatingwebhookconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeMutatingWebhookConfigurations) List(ctx context.Context, opts metav | |||||||
| // Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations. | // Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations. | ||||||
| func (c *FakeMutatingWebhookConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeMutatingWebhookConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(mutatingwebhookconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(mutatingwebhookconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any. | // Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any. | ||||||
| func (c *FakeMutatingWebhookConfigurations) Create(ctx context.Context, mutatingWebhookConfiguration *v1.MutatingWebhookConfiguration, opts metav1.CreateOptions) (result *v1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Create(ctx context.Context, mutatingWebhookConfiguration *v1.MutatingWebhookConfiguration, opts metav1.CreateOptions) (result *v1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.MutatingWebhookConfiguration{} | 	emptyResult := &v1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeMutatingWebhookConfigurations) Create(ctx context.Context, mutating | |||||||
| func (c *FakeMutatingWebhookConfigurations) Update(ctx context.Context, mutatingWebhookConfiguration *v1.MutatingWebhookConfiguration, opts metav1.UpdateOptions) (result *v1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Update(ctx context.Context, mutatingWebhookConfiguration *v1.MutatingWebhookConfiguration, opts metav1.UpdateOptions) (result *v1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.MutatingWebhookConfiguration{} | 	emptyResult := &v1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeMutatingWebhookConfigurations) Delete(ctx context.Context, name str | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeMutatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeMutatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(mutatingwebhookconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(mutatingwebhookconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.MutatingWebhookConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1.MutatingWebhookConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeMutatingWebhookConfigurations) DeleteCollection(ctx context.Context | |||||||
| func (c *FakeMutatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.MutatingWebhookConfiguration{} | 	emptyResult := &v1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(mutatingwebhookconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(mutatingwebhookconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeMutatingWebhookConfigurations) Apply(ctx context.Context, mutatingW | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.MutatingWebhookConfiguration{} | 	emptyResult := &v1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(mutatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(mutatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingadmissionpoliciesKind = v1.SchemeGroupVersion.WithKind("Validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingadmissionpoliciesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingadmissionpoliciesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, | |||||||
| func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyList, err error) { | func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyList, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyList{} | 	emptyResult := &v1.ValidatingAdmissionPolicyList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingadmissionpoliciesResource, validatingadmissionpoliciesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingadmissionpoliciesResource, validatingadmissionpoliciesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts metav1. | |||||||
| // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicies. | // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicies. | ||||||
| func (c *FakeValidatingAdmissionPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingAdmissionPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingadmissionpoliciesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingadmissionpoliciesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingAdmissionPolicy and creates it.  Returns the server's representation of the validatingAdmissionPolicy, and an error, if there is any. | // Create takes the representation of a validatingAdmissionPolicy and creates it.  Returns the server's representation of the validatingAdmissionPolicy, and an error, if there is any. | ||||||
| func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.CreateOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.CreateOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingadmissionpoliciesResource, validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingadmissionpoliciesResource, validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.UpdateOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.UpdateOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingadmissionpoliciesResource, validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingadmissionpoliciesResource, validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.UpdateOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1.ValidatingAdmissionPolicy, opts metav1.UpdateOptions) (result *v1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(validatingadmissionpoliciesResource, "status", validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(validatingadmissionpoliciesResource, "status", validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeValidatingAdmissionPolicies) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingadmissionpoliciesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingadmissionpoliciesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ValidatingAdmissionPolicyList{}) | 	_, err := c.Fake.Invokes(action, &v1.ValidatingAdmissionPolicyList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakeValidatingAdmissionPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeValidatingAdmissionPolicies) Apply(ctx context.Context, validatingA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeValidatingAdmissionPolicies) ApplyStatus(ctx context.Context, valid | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingadmissionpolicybindingsKind = v1.SchemeGroupVersion.WithKind("Vali | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingadmissionpolicybindingsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingadmissionpolicybindingsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name st | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyBindingList, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyBindingList{} | 	emptyResult := &v1.ValidatingAdmissionPolicyBindingList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingadmissionpolicybindingsResource, validatingadmissionpolicybindingsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingadmissionpolicybindingsResource, validatingadmissionpolicybindingsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts m | |||||||
| // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicyBindings. | // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicyBindings. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingAdmissionPolicyBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingadmissionpolicybindingsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingadmissionpolicybindingsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingAdmissionPolicyBinding and creates it.  Returns the server's representation of the validatingAdmissionPolicyBinding, and an error, if there is any. | // Create takes the representation of a validatingAdmissionPolicyBinding and creates it.  Returns the server's representation of the validatingAdmissionPolicyBinding, and an error, if there is any. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, validatingAdmissionPolicyBinding *v1.ValidatingAdmissionPolicyBinding, opts metav1.CreateOptions) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, validatingAdmissionPolicyBinding *v1.ValidatingAdmissionPolicyBinding, opts metav1.CreateOptions) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, vali | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Update(ctx context.Context, validatingAdmissionPolicyBinding *v1.ValidatingAdmissionPolicyBinding, opts metav1.UpdateOptions) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Update(ctx context.Context, validatingAdmissionPolicyBinding *v1.ValidatingAdmissionPolicyBinding, opts metav1.UpdateOptions) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Delete(ctx context.Context, name | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingadmissionpolicybindingsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingadmissionpolicybindingsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ValidatingAdmissionPolicyBindingList{}) | 	_, err := c.Fake.Invokes(action, &v1.ValidatingAdmissionPolicyBindingList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Con | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpolicybindingsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpolicybindingsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Apply(ctx context.Context, valid | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpolicybindingsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpolicybindingsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingwebhookconfigurationsKind = v1.SchemeGroupVersion.WithKind("Valida | |||||||
| func (c *FakeValidatingWebhookConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingwebhookconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingwebhookconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingWebhookConfigurations) Get(ctx context.Context, name stri | |||||||
| func (c *FakeValidatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingWebhookConfigurationList, err error) { | func (c *FakeValidatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingWebhookConfigurationList, err error) { | ||||||
| 	emptyResult := &v1.ValidatingWebhookConfigurationList{} | 	emptyResult := &v1.ValidatingWebhookConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingwebhookconfigurationsResource, validatingwebhookconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingwebhookconfigurationsResource, validatingwebhookconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingWebhookConfigurations) List(ctx context.Context, opts met | |||||||
| // Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations. | // Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations. | ||||||
| func (c *FakeValidatingWebhookConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingWebhookConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingwebhookconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingwebhookconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any. | // Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any. | ||||||
| func (c *FakeValidatingWebhookConfigurations) Create(ctx context.Context, validatingWebhookConfiguration *v1.ValidatingWebhookConfiguration, opts metav1.CreateOptions) (result *v1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Create(ctx context.Context, validatingWebhookConfiguration *v1.ValidatingWebhookConfiguration, opts metav1.CreateOptions) (result *v1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingwebhookconfigurationsResource, validatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingWebhookConfigurations) Create(ctx context.Context, valida | |||||||
| func (c *FakeValidatingWebhookConfigurations) Update(ctx context.Context, validatingWebhookConfiguration *v1.ValidatingWebhookConfiguration, opts metav1.UpdateOptions) (result *v1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Update(ctx context.Context, validatingWebhookConfiguration *v1.ValidatingWebhookConfiguration, opts metav1.UpdateOptions) (result *v1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingwebhookconfigurationsResource, validatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeValidatingWebhookConfigurations) Delete(ctx context.Context, name s | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeValidatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingwebhookconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingwebhookconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ValidatingWebhookConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1.ValidatingWebhookConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeValidatingWebhookConfigurations) DeleteCollection(ctx context.Conte | |||||||
| func (c *FakeValidatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingwebhookconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingwebhookconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeValidatingWebhookConfigurations) Apply(ctx context.Context, validat | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingadmissionpoliciesKind = v1alpha1.SchemeGroupVersion.WithKind("Vali | |||||||
| func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingadmissionpoliciesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingadmissionpoliciesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, | |||||||
| func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyList, err error) { | func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyList, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyList{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingadmissionpoliciesResource, validatingadmissionpoliciesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingadmissionpoliciesResource, validatingadmissionpoliciesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts v1.List | |||||||
| // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicies. | // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicies. | ||||||
| func (c *FakeValidatingAdmissionPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingAdmissionPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingadmissionpoliciesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingadmissionpoliciesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingAdmissionPolicy and creates it.  Returns the server's representation of the validatingAdmissionPolicy, and an error, if there is any. | // Create takes the representation of a validatingAdmissionPolicy and creates it.  Returns the server's representation of the validatingAdmissionPolicy, and an error, if there is any. | ||||||
| func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.CreateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.CreateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingadmissionpoliciesResource, validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingadmissionpoliciesResource, validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingadmissionpoliciesResource, validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingadmissionpoliciesResource, validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1alpha1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(validatingadmissionpoliciesResource, "status", validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(validatingadmissionpoliciesResource, "status", validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeValidatingAdmissionPolicies) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingadmissionpoliciesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingadmissionpoliciesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1alpha1.ValidatingAdmissionPolicyList{}) | 	_, err := c.Fake.Invokes(action, &v1alpha1.ValidatingAdmissionPolicyList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakeValidatingAdmissionPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeValidatingAdmissionPolicies) Apply(ctx context.Context, validatingA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeValidatingAdmissionPolicies) ApplyStatus(ctx context.Context, valid | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingadmissionpolicybindingsKind = v1alpha1.SchemeGroupVersion.WithKind | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingadmissionpolicybindingsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingadmissionpolicybindingsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name st | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyBindingList, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBindingList{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBindingList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingadmissionpolicybindingsResource, validatingadmissionpolicybindingsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingadmissionpolicybindingsResource, validatingadmissionpolicybindingsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts v | |||||||
| // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicyBindings. | // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicyBindings. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingAdmissionPolicyBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingadmissionpolicybindingsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingadmissionpolicybindingsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingAdmissionPolicyBinding and creates it.  Returns the server's representation of the validatingAdmissionPolicyBinding, and an error, if there is any. | // Create takes the representation of a validatingAdmissionPolicyBinding and creates it.  Returns the server's representation of the validatingAdmissionPolicyBinding, and an error, if there is any. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, validatingAdmissionPolicyBinding *v1alpha1.ValidatingAdmissionPolicyBinding, opts v1.CreateOptions) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, validatingAdmissionPolicyBinding *v1alpha1.ValidatingAdmissionPolicyBinding, opts v1.CreateOptions) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, vali | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Update(ctx context.Context, validatingAdmissionPolicyBinding *v1alpha1.ValidatingAdmissionPolicyBinding, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Update(ctx context.Context, validatingAdmissionPolicyBinding *v1alpha1.ValidatingAdmissionPolicyBinding, opts v1.UpdateOptions) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Delete(ctx context.Context, name | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingadmissionpolicybindingsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingadmissionpolicybindingsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1alpha1.ValidatingAdmissionPolicyBindingList{}) | 	_, err := c.Fake.Invokes(action, &v1alpha1.ValidatingAdmissionPolicyBindingList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Con | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpolicybindingsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpolicybindingsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Apply(ctx context.Context, valid | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1alpha1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpolicybindingsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpolicybindingsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var mutatingwebhookconfigurationsKind = v1beta1.SchemeGroupVersion.WithKind("Mut | |||||||
| func (c *FakeMutatingWebhookConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(mutatingwebhookconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(mutatingwebhookconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeMutatingWebhookConfigurations) Get(ctx context.Context, name string | |||||||
| func (c *FakeMutatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) { | func (c *FakeMutatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) { | ||||||
| 	emptyResult := &v1beta1.MutatingWebhookConfigurationList{} | 	emptyResult := &v1beta1.MutatingWebhookConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(mutatingwebhookconfigurationsResource, mutatingwebhookconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(mutatingwebhookconfigurationsResource, mutatingwebhookconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeMutatingWebhookConfigurations) List(ctx context.Context, opts v1.Li | |||||||
| // Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations. | // Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations. | ||||||
| func (c *FakeMutatingWebhookConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeMutatingWebhookConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(mutatingwebhookconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(mutatingwebhookconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any. | // Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any. | ||||||
| func (c *FakeMutatingWebhookConfigurations) Create(ctx context.Context, mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration, opts v1.CreateOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Create(ctx context.Context, mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration, opts v1.CreateOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeMutatingWebhookConfigurations) Create(ctx context.Context, mutating | |||||||
| func (c *FakeMutatingWebhookConfigurations) Update(ctx context.Context, mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration, opts v1.UpdateOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Update(ctx context.Context, mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration, opts v1.UpdateOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeMutatingWebhookConfigurations) Delete(ctx context.Context, name str | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeMutatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeMutatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(mutatingwebhookconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(mutatingwebhookconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.MutatingWebhookConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.MutatingWebhookConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeMutatingWebhookConfigurations) DeleteCollection(ctx context.Context | |||||||
| func (c *FakeMutatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.MutatingWebhookConfiguration, err error) { | func (c *FakeMutatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.MutatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(mutatingwebhookconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(mutatingwebhookconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeMutatingWebhookConfigurations) Apply(ctx context.Context, mutatingW | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | 	emptyResult := &v1beta1.MutatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(mutatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(mutatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingadmissionpoliciesKind = v1beta1.SchemeGroupVersion.WithKind("Valid | |||||||
| func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingadmissionpoliciesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingadmissionpoliciesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingAdmissionPolicies) Get(ctx context.Context, name string, | |||||||
| func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyList, err error) { | func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyList, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyList{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingadmissionpoliciesResource, validatingadmissionpoliciesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingadmissionpoliciesResource, validatingadmissionpoliciesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingAdmissionPolicies) List(ctx context.Context, opts v1.List | |||||||
| // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicies. | // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicies. | ||||||
| func (c *FakeValidatingAdmissionPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingAdmissionPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingadmissionpoliciesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingadmissionpoliciesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingAdmissionPolicy and creates it.  Returns the server's representation of the validatingAdmissionPolicy, and an error, if there is any. | // Create takes the representation of a validatingAdmissionPolicy and creates it.  Returns the server's representation of the validatingAdmissionPolicy, and an error, if there is any. | ||||||
| func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1beta1.ValidatingAdmissionPolicy, opts v1.CreateOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validatingAdmissionPolicy *v1beta1.ValidatingAdmissionPolicy, opts v1.CreateOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingadmissionpoliciesResource, validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingadmissionpoliciesResource, validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingAdmissionPolicies) Create(ctx context.Context, validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validatingAdmissionPolicy *v1beta1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validatingAdmissionPolicy *v1beta1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingadmissionpoliciesResource, validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingadmissionpoliciesResource, validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeValidatingAdmissionPolicies) Update(ctx context.Context, validating | |||||||
| func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1beta1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) UpdateStatus(ctx context.Context, validatingAdmissionPolicy *v1beta1.ValidatingAdmissionPolicy, opts v1.UpdateOptions) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(validatingadmissionpoliciesResource, "status", validatingAdmissionPolicy), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(validatingadmissionpoliciesResource, "status", validatingAdmissionPolicy, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeValidatingAdmissionPolicies) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingadmissionpoliciesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingadmissionpoliciesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ValidatingAdmissionPolicyList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.ValidatingAdmissionPolicyList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeValidatingAdmissionPolicies) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakeValidatingAdmissionPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | func (c *FakeValidatingAdmissionPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ValidatingAdmissionPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeValidatingAdmissionPolicies) Apply(ctx context.Context, validatingA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeValidatingAdmissionPolicies) ApplyStatus(ctx context.Context, valid | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingadmissionpolicybindingsKind = v1beta1.SchemeGroupVersion.WithKind( | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingadmissionpolicybindingsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingadmissionpolicybindingsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Get(ctx context.Context, name st | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyBindingList, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBindingList{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBindingList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingadmissionpolicybindingsResource, validatingadmissionpolicybindingsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingadmissionpolicybindingsResource, validatingadmissionpolicybindingsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingAdmissionPolicyBindings) List(ctx context.Context, opts v | |||||||
| // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicyBindings. | // Watch returns a watch.Interface that watches the requested validatingAdmissionPolicyBindings. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingAdmissionPolicyBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingadmissionpolicybindingsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingadmissionpolicybindingsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingAdmissionPolicyBinding and creates it.  Returns the server's representation of the validatingAdmissionPolicyBinding, and an error, if there is any. | // Create takes the representation of a validatingAdmissionPolicyBinding and creates it.  Returns the server's representation of the validatingAdmissionPolicyBinding, and an error, if there is any. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, validatingAdmissionPolicyBinding *v1beta1.ValidatingAdmissionPolicyBinding, opts v1.CreateOptions) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, validatingAdmissionPolicyBinding *v1beta1.ValidatingAdmissionPolicyBinding, opts v1.CreateOptions) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Create(ctx context.Context, vali | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Update(ctx context.Context, validatingAdmissionPolicyBinding *v1beta1.ValidatingAdmissionPolicyBinding, opts v1.UpdateOptions) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Update(ctx context.Context, validatingAdmissionPolicyBinding *v1beta1.ValidatingAdmissionPolicyBinding, opts v1.UpdateOptions) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingadmissionpolicybindingsResource, validatingAdmissionPolicyBinding, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Delete(ctx context.Context, name | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingadmissionpolicybindingsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingadmissionpolicybindingsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ValidatingAdmissionPolicyBindingList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.ValidatingAdmissionPolicyBindingList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) DeleteCollection(ctx context.Con | |||||||
| func (c *FakeValidatingAdmissionPolicyBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | func (c *FakeValidatingAdmissionPolicyBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ValidatingAdmissionPolicyBinding, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpolicybindingsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpolicybindingsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeValidatingAdmissionPolicyBindings) Apply(ctx context.Context, valid | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | 	emptyResult := &v1beta1.ValidatingAdmissionPolicyBinding{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingadmissionpolicybindingsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingadmissionpolicybindingsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var validatingwebhookconfigurationsKind = v1beta1.SchemeGroupVersion.WithKind("V | |||||||
| func (c *FakeValidatingWebhookConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(validatingwebhookconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(validatingwebhookconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeValidatingWebhookConfigurations) Get(ctx context.Context, name stri | |||||||
| func (c *FakeValidatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) { | func (c *FakeValidatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingWebhookConfigurationList{} | 	emptyResult := &v1beta1.ValidatingWebhookConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(validatingwebhookconfigurationsResource, validatingwebhookconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(validatingwebhookconfigurationsResource, validatingwebhookconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeValidatingWebhookConfigurations) List(ctx context.Context, opts v1. | |||||||
| // Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations. | // Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations. | ||||||
| func (c *FakeValidatingWebhookConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeValidatingWebhookConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(validatingwebhookconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(validatingwebhookconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any. | // Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any. | ||||||
| func (c *FakeValidatingWebhookConfigurations) Create(ctx context.Context, validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration, opts v1.CreateOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Create(ctx context.Context, validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration, opts v1.CreateOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(validatingwebhookconfigurationsResource, validatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeValidatingWebhookConfigurations) Create(ctx context.Context, valida | |||||||
| func (c *FakeValidatingWebhookConfigurations) Update(ctx context.Context, validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration, opts v1.UpdateOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Update(ctx context.Context, validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration, opts v1.UpdateOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(validatingwebhookconfigurationsResource, validatingWebhookConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeValidatingWebhookConfigurations) Delete(ctx context.Context, name s | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeValidatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeValidatingWebhookConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(validatingwebhookconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(validatingwebhookconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ValidatingWebhookConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.ValidatingWebhookConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeValidatingWebhookConfigurations) DeleteCollection(ctx context.Conte | |||||||
| func (c *FakeValidatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | func (c *FakeValidatingWebhookConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ValidatingWebhookConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingwebhookconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingwebhookconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeValidatingWebhookConfigurations) Apply(ctx context.Context, validat | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | 	emptyResult := &v1beta1.ValidatingWebhookConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(validatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(validatingwebhookconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var storageversionsKind = v1alpha1.SchemeGroupVersion.WithKind("StorageVersion") | |||||||
| func (c *FakeStorageVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.StorageVersion, err error) { | func (c *FakeStorageVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.StorageVersion, err error) { | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(storageversionsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(storageversionsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeStorageVersions) Get(ctx context.Context, name string, options v1.G | |||||||
| func (c *FakeStorageVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageVersionList, err error) { | func (c *FakeStorageVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageVersionList, err error) { | ||||||
| 	emptyResult := &v1alpha1.StorageVersionList{} | 	emptyResult := &v1alpha1.StorageVersionList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(storageversionsResource, storageversionsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(storageversionsResource, storageversionsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeStorageVersions) List(ctx context.Context, opts v1.ListOptions) (re | |||||||
| // Watch returns a watch.Interface that watches the requested storageVersions. | // Watch returns a watch.Interface that watches the requested storageVersions. | ||||||
| func (c *FakeStorageVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeStorageVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(storageversionsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(storageversionsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a storageVersion and creates it.  Returns the server's representation of the storageVersion, and an error, if there is any. | // Create takes the representation of a storageVersion and creates it.  Returns the server's representation of the storageVersion, and an error, if there is any. | ||||||
| func (c *FakeStorageVersions) Create(ctx context.Context, storageVersion *v1alpha1.StorageVersion, opts v1.CreateOptions) (result *v1alpha1.StorageVersion, err error) { | func (c *FakeStorageVersions) Create(ctx context.Context, storageVersion *v1alpha1.StorageVersion, opts v1.CreateOptions) (result *v1alpha1.StorageVersion, err error) { | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(storageversionsResource, storageVersion), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(storageversionsResource, storageVersion, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeStorageVersions) Create(ctx context.Context, storageVersion *v1alph | |||||||
| func (c *FakeStorageVersions) Update(ctx context.Context, storageVersion *v1alpha1.StorageVersion, opts v1.UpdateOptions) (result *v1alpha1.StorageVersion, err error) { | func (c *FakeStorageVersions) Update(ctx context.Context, storageVersion *v1alpha1.StorageVersion, opts v1.UpdateOptions) (result *v1alpha1.StorageVersion, err error) { | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(storageversionsResource, storageVersion), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(storageversionsResource, storageVersion, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeStorageVersions) Update(ctx context.Context, storageVersion *v1alph | |||||||
| func (c *FakeStorageVersions) UpdateStatus(ctx context.Context, storageVersion *v1alpha1.StorageVersion, opts v1.UpdateOptions) (result *v1alpha1.StorageVersion, err error) { | func (c *FakeStorageVersions) UpdateStatus(ctx context.Context, storageVersion *v1alpha1.StorageVersion, opts v1.UpdateOptions) (result *v1alpha1.StorageVersion, err error) { | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(storageversionsResource, "status", storageVersion), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(storageversionsResource, "status", storageVersion, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeStorageVersions) Delete(ctx context.Context, name string, opts v1.D | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeStorageVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeStorageVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(storageversionsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(storageversionsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1alpha1.StorageVersionList{}) | 	_, err := c.Fake.Invokes(action, &v1alpha1.StorageVersionList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeStorageVersions) DeleteCollection(ctx context.Context, opts v1.Dele | |||||||
| func (c *FakeStorageVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.StorageVersion, err error) { | func (c *FakeStorageVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.StorageVersion, err error) { | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(storageversionsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(storageversionsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeStorageVersions) Apply(ctx context.Context, storageVersion *apiserv | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(storageversionsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(storageversionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeStorageVersions) ApplyStatus(ctx context.Context, storageVersion *a | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.StorageVersion{} | 	emptyResult := &v1alpha1.StorageVersion{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(storageversionsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(storageversionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var controllerrevisionsKind = v1.SchemeGroupVersion.WithKind("ControllerRevision | |||||||
| func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1.ControllerRevision{} | 	emptyResult := &v1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(controllerrevisionsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(controllerrevisionsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options | |||||||
| func (c *FakeControllerRevisions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ControllerRevisionList, err error) { | func (c *FakeControllerRevisions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ControllerRevisionList, err error) { | ||||||
| 	emptyResult := &v1.ControllerRevisionList{} | 	emptyResult := &v1.ControllerRevisionList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeControllerRevisions) List(ctx context.Context, opts metav1.ListOpti | |||||||
| // Watch returns a watch.Interface that watches the requested controllerRevisions. | // Watch returns a watch.Interface that watches the requested controllerRevisions. | ||||||
| func (c *FakeControllerRevisions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeControllerRevisions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(controllerrevisionsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(controllerrevisionsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeControllerRevisions) Watch(ctx context.Context, opts metav1.ListOpt | |||||||
| func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision *v1.ControllerRevision, opts metav1.CreateOptions) (result *v1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision *v1.ControllerRevision, opts metav1.CreateOptions) (result *v1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1.ControllerRevision{} | 	emptyResult := &v1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(controllerrevisionsResource, c.ns, controllerRevision, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision | |||||||
| func (c *FakeControllerRevisions) Update(ctx context.Context, controllerRevision *v1.ControllerRevision, opts metav1.UpdateOptions) (result *v1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Update(ctx context.Context, controllerRevision *v1.ControllerRevision, opts metav1.UpdateOptions) (result *v1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1.ControllerRevision{} | 	emptyResult := &v1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(controllerrevisionsResource, c.ns, controllerRevision, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeControllerRevisions) Delete(ctx context.Context, name string, opts | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(controllerrevisionsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ControllerRevisionList{}) | 	_, err := c.Fake.Invokes(action, &v1.ControllerRevisionList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts met | |||||||
| func (c *FakeControllerRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1.ControllerRevision{} | 	emptyResult := &v1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(controllerrevisionsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeControllerRevisions) Apply(ctx context.Context, controllerRevision | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ControllerRevision{} | 	emptyResult := &v1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(controllerrevisionsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var daemonsetsKind = v1.SchemeGroupVersion.WithKind("DaemonSet") | |||||||
| func (c *FakeDaemonSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DaemonSet, err error) { | func (c *FakeDaemonSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(daemonsetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeDaemonSets) Get(ctx context.Context, name string, options metav1.Ge | |||||||
| func (c *FakeDaemonSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DaemonSetList, err error) { | func (c *FakeDaemonSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DaemonSetList, err error) { | ||||||
| 	emptyResult := &v1.DaemonSetList{} | 	emptyResult := &v1.DaemonSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(daemonsetsResource, daemonsetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeDaemonSets) List(ctx context.Context, opts metav1.ListOptions) (res | |||||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | // Watch returns a watch.Interface that watches the requested daemonSets. | ||||||
| func (c *FakeDaemonSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeDaemonSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(daemonsetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(daemonsetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeDaemonSets) Watch(ctx context.Context, opts metav1.ListOptions) (wa | |||||||
| func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1.DaemonSet, opts metav1.CreateOptions) (result *v1.DaemonSet, err error) { | func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1.DaemonSet, opts metav1.CreateOptions) (result *v1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(daemonsetsResource, c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1.DaemonSet, op | |||||||
| func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1.DaemonSet, opts metav1.UpdateOptions) (result *v1.DaemonSet, err error) { | func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1.DaemonSet, opts metav1.UpdateOptions) (result *v1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(daemonsetsResource, c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1.DaemonSet, op | |||||||
| func (c *FakeDaemonSets) UpdateStatus(ctx context.Context, daemonSet *v1.DaemonSet, opts metav1.UpdateOptions) (result *v1.DaemonSet, err error) { | func (c *FakeDaemonSets) UpdateStatus(ctx context.Context, daemonSet *v1.DaemonSet, opts metav1.UpdateOptions) (result *v1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(daemonsetsResource, "status", c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeDaemonSets) Delete(ctx context.Context, name string, opts metav1.De | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(daemonsetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.DaemonSetList{}) | 	_, err := c.Fake.Invokes(action, &v1.DaemonSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts metav1.Delet | |||||||
| func (c *FakeDaemonSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DaemonSet, err error) { | func (c *FakeDaemonSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeDaemonSets) Apply(ctx context.Context, daemonSet *appsv1.DaemonSetA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeDaemonSets) ApplyStatus(ctx context.Context, daemonSet *appsv1.Daem | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.DaemonSet{} | 	emptyResult := &v1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ var deploymentsKind = v1.SchemeGroupVersion.WithKind("Deployment") | |||||||
| func (c *FakeDeployments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Deployment, err error) { | func (c *FakeDeployments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Deployment, err error) { | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(deploymentsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -60,7 +60,7 @@ func (c *FakeDeployments) Get(ctx context.Context, name string, options metav1.G | |||||||
| func (c *FakeDeployments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DeploymentList, err error) { | func (c *FakeDeployments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DeploymentList, err error) { | ||||||
| 	emptyResult := &v1.DeploymentList{} | 	emptyResult := &v1.DeploymentList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -82,7 +82,7 @@ func (c *FakeDeployments) List(ctx context.Context, opts metav1.ListOptions) (re | |||||||
| // Watch returns a watch.Interface that watches the requested deployments. | // Watch returns a watch.Interface that watches the requested deployments. | ||||||
| func (c *FakeDeployments) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeDeployments) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(deploymentsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(deploymentsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -90,7 +90,7 @@ func (c *FakeDeployments) Watch(ctx context.Context, opts metav1.ListOptions) (w | |||||||
| func (c *FakeDeployments) Create(ctx context.Context, deployment *v1.Deployment, opts metav1.CreateOptions) (result *v1.Deployment, err error) { | func (c *FakeDeployments) Create(ctx context.Context, deployment *v1.Deployment, opts metav1.CreateOptions) (result *v1.Deployment, err error) { | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -102,7 +102,7 @@ func (c *FakeDeployments) Create(ctx context.Context, deployment *v1.Deployment, | |||||||
| func (c *FakeDeployments) Update(ctx context.Context, deployment *v1.Deployment, opts metav1.UpdateOptions) (result *v1.Deployment, err error) { | func (c *FakeDeployments) Update(ctx context.Context, deployment *v1.Deployment, opts metav1.UpdateOptions) (result *v1.Deployment, err error) { | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -115,7 +115,7 @@ func (c *FakeDeployments) Update(ctx context.Context, deployment *v1.Deployment, | |||||||
| func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1.Deployment, opts metav1.UpdateOptions) (result *v1.Deployment, err error) { | func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1.Deployment, opts metav1.UpdateOptions) (result *v1.Deployment, err error) { | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentsResource, "status", c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeDeployments) Delete(ctx context.Context, name string, opts metav1.D | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(deploymentsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.DeploymentList{}) | 	_, err := c.Fake.Invokes(action, &v1.DeploymentList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts metav1.Dele | |||||||
| func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Deployment, err error) { | func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Deployment, err error) { | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -166,7 +166,7 @@ func (c *FakeDeployments) Apply(ctx context.Context, deployment *appsv1.Deployme | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -190,7 +190,7 @@ func (c *FakeDeployments) ApplyStatus(ctx context.Context, deployment *appsv1.De | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Deployment{} | 	emptyResult := &v1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -202,7 +202,7 @@ func (c *FakeDeployments) ApplyStatus(ctx context.Context, deployment *appsv1.De | |||||||
| func (c *FakeDeployments) GetScale(ctx context.Context, deploymentName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeDeployments) GetScale(ctx context.Context, deploymentName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(deploymentsResource, c.ns, "scale", deploymentName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(deploymentsResource, c.ns, "scale", deploymentName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -214,7 +214,7 @@ func (c *FakeDeployments) GetScale(ctx context.Context, deploymentName string, o | |||||||
| func (c *FakeDeployments) UpdateScale(ctx context.Context, deploymentName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeDeployments) UpdateScale(ctx context.Context, deploymentName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "scale", c.ns, scale), &autoscalingv1.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentsResource, "scale", c.ns, scale, opts), &autoscalingv1.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -234,7 +234,7 @@ func (c *FakeDeployments) ApplyScale(ctx context.Context, deploymentName string, | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, deploymentName, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, deploymentName, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ var replicasetsKind = v1.SchemeGroupVersion.WithKind("ReplicaSet") | |||||||
| func (c *FakeReplicaSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(replicasetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(replicasetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -60,7 +60,7 @@ func (c *FakeReplicaSets) Get(ctx context.Context, name string, options metav1.G | |||||||
| func (c *FakeReplicaSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicaSetList, err error) { | func (c *FakeReplicaSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicaSetList, err error) { | ||||||
| 	emptyResult := &v1.ReplicaSetList{} | 	emptyResult := &v1.ReplicaSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(replicasetsResource, replicasetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(replicasetsResource, replicasetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -82,7 +82,7 @@ func (c *FakeReplicaSets) List(ctx context.Context, opts metav1.ListOptions) (re | |||||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | // Watch returns a watch.Interface that watches the requested replicaSets. | ||||||
| func (c *FakeReplicaSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeReplicaSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(replicasetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(replicasetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -90,7 +90,7 @@ func (c *FakeReplicaSets) Watch(ctx context.Context, opts metav1.ListOptions) (w | |||||||
| func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1.ReplicaSet, opts metav1.CreateOptions) (result *v1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1.ReplicaSet, opts metav1.CreateOptions) (result *v1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(replicasetsResource, c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -102,7 +102,7 @@ func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1.ReplicaSet, | |||||||
| func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1.ReplicaSet, opts metav1.UpdateOptions) (result *v1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1.ReplicaSet, opts metav1.UpdateOptions) (result *v1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(replicasetsResource, c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -115,7 +115,7 @@ func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1.ReplicaSet, | |||||||
| func (c *FakeReplicaSets) UpdateStatus(ctx context.Context, replicaSet *v1.ReplicaSet, opts metav1.UpdateOptions) (result *v1.ReplicaSet, err error) { | func (c *FakeReplicaSets) UpdateStatus(ctx context.Context, replicaSet *v1.ReplicaSet, opts metav1.UpdateOptions) (result *v1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicasetsResource, "status", c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeReplicaSets) Delete(ctx context.Context, name string, opts metav1.D | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(replicasetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ReplicaSetList{}) | 	_, err := c.Fake.Invokes(action, &v1.ReplicaSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts metav1.Dele | |||||||
| func (c *FakeReplicaSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -166,7 +166,7 @@ func (c *FakeReplicaSets) Apply(ctx context.Context, replicaSet *appsv1.ReplicaS | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -190,7 +190,7 @@ func (c *FakeReplicaSets) ApplyStatus(ctx context.Context, replicaSet *appsv1.Re | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ReplicaSet{} | 	emptyResult := &v1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -202,7 +202,7 @@ func (c *FakeReplicaSets) ApplyStatus(ctx context.Context, replicaSet *appsv1.Re | |||||||
| func (c *FakeReplicaSets) GetScale(ctx context.Context, replicaSetName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeReplicaSets) GetScale(ctx context.Context, replicaSetName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(replicasetsResource, c.ns, "scale", replicaSetName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(replicasetsResource, c.ns, "scale", replicaSetName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -214,7 +214,7 @@ func (c *FakeReplicaSets) GetScale(ctx context.Context, replicaSetName string, o | |||||||
| func (c *FakeReplicaSets) UpdateScale(ctx context.Context, replicaSetName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeReplicaSets) UpdateScale(ctx context.Context, replicaSetName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "scale", c.ns, scale), &autoscalingv1.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicasetsResource, "scale", c.ns, scale, opts), &autoscalingv1.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -234,7 +234,7 @@ func (c *FakeReplicaSets) ApplyScale(ctx context.Context, replicaSetName string, | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, replicaSetName, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, replicaSetName, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ var statefulsetsKind = v1.SchemeGroupVersion.WithKind("StatefulSet") | |||||||
| func (c *FakeStatefulSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.StatefulSet, err error) { | func (c *FakeStatefulSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(statefulsetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(statefulsetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -60,7 +60,7 @@ func (c *FakeStatefulSets) Get(ctx context.Context, name string, options metav1. | |||||||
| func (c *FakeStatefulSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.StatefulSetList, err error) { | func (c *FakeStatefulSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.StatefulSetList, err error) { | ||||||
| 	emptyResult := &v1.StatefulSetList{} | 	emptyResult := &v1.StatefulSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(statefulsetsResource, statefulsetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(statefulsetsResource, statefulsetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -82,7 +82,7 @@ func (c *FakeStatefulSets) List(ctx context.Context, opts metav1.ListOptions) (r | |||||||
| // Watch returns a watch.Interface that watches the requested statefulSets. | // Watch returns a watch.Interface that watches the requested statefulSets. | ||||||
| func (c *FakeStatefulSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeStatefulSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(statefulsetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(statefulsetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -90,7 +90,7 @@ func (c *FakeStatefulSets) Watch(ctx context.Context, opts metav1.ListOptions) ( | |||||||
| func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.CreateOptions) (result *v1.StatefulSet, err error) { | func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.CreateOptions) (result *v1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(statefulsetsResource, c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -102,7 +102,7 @@ func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1.StatefulS | |||||||
| func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.UpdateOptions) (result *v1.StatefulSet, err error) { | func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.UpdateOptions) (result *v1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(statefulsetsResource, c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -115,7 +115,7 @@ func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1.StatefulS | |||||||
| func (c *FakeStatefulSets) UpdateStatus(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.UpdateOptions) (result *v1.StatefulSet, err error) { | func (c *FakeStatefulSets) UpdateStatus(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.UpdateOptions) (result *v1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(statefulsetsResource, "status", c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeStatefulSets) Delete(ctx context.Context, name string, opts metav1. | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(statefulsetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.StatefulSetList{}) | 	_, err := c.Fake.Invokes(action, &v1.StatefulSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts metav1.Del | |||||||
| func (c *FakeStatefulSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.StatefulSet, err error) { | func (c *FakeStatefulSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -166,7 +166,7 @@ func (c *FakeStatefulSets) Apply(ctx context.Context, statefulSet *appsv1.Statef | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -190,7 +190,7 @@ func (c *FakeStatefulSets) ApplyStatus(ctx context.Context, statefulSet *appsv1. | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.StatefulSet{} | 	emptyResult := &v1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -202,7 +202,7 @@ func (c *FakeStatefulSets) ApplyStatus(ctx context.Context, statefulSet *appsv1. | |||||||
| func (c *FakeStatefulSets) GetScale(ctx context.Context, statefulSetName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeStatefulSets) GetScale(ctx context.Context, statefulSetName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(statefulsetsResource, c.ns, "scale", statefulSetName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(statefulsetsResource, c.ns, "scale", statefulSetName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -214,7 +214,7 @@ func (c *FakeStatefulSets) GetScale(ctx context.Context, statefulSetName string, | |||||||
| func (c *FakeStatefulSets) UpdateScale(ctx context.Context, statefulSetName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeStatefulSets) UpdateScale(ctx context.Context, statefulSetName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "scale", c.ns, scale), &autoscalingv1.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(statefulsetsResource, "scale", c.ns, scale, opts), &autoscalingv1.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -234,7 +234,7 @@ func (c *FakeStatefulSets) ApplyScale(ctx context.Context, statefulSetName strin | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, statefulSetName, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, statefulSetName, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var controllerrevisionsKind = v1beta1.SchemeGroupVersion.WithKind("ControllerRev | |||||||
| func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta1.ControllerRevision{} | 	emptyResult := &v1beta1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(controllerrevisionsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(controllerrevisionsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options | |||||||
| func (c *FakeControllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) { | func (c *FakeControllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) { | ||||||
| 	emptyResult := &v1beta1.ControllerRevisionList{} | 	emptyResult := &v1beta1.ControllerRevisionList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeControllerRevisions) List(ctx context.Context, opts v1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested controllerRevisions. | // Watch returns a watch.Interface that watches the requested controllerRevisions. | ||||||
| func (c *FakeControllerRevisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeControllerRevisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(controllerrevisionsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(controllerrevisionsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeControllerRevisions) Watch(ctx context.Context, opts v1.ListOptions | |||||||
| func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision *v1beta1.ControllerRevision, opts v1.CreateOptions) (result *v1beta1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision *v1beta1.ControllerRevision, opts v1.CreateOptions) (result *v1beta1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta1.ControllerRevision{} | 	emptyResult := &v1beta1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(controllerrevisionsResource, c.ns, controllerRevision, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision | |||||||
| func (c *FakeControllerRevisions) Update(ctx context.Context, controllerRevision *v1beta1.ControllerRevision, opts v1.UpdateOptions) (result *v1beta1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Update(ctx context.Context, controllerRevision *v1beta1.ControllerRevision, opts v1.UpdateOptions) (result *v1beta1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta1.ControllerRevision{} | 	emptyResult := &v1beta1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(controllerrevisionsResource, c.ns, controllerRevision, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeControllerRevisions) Delete(ctx context.Context, name string, opts | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(controllerrevisionsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ControllerRevisionList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.ControllerRevisionList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts v1. | |||||||
| func (c *FakeControllerRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta1.ControllerRevision{} | 	emptyResult := &v1beta1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(controllerrevisionsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeControllerRevisions) Apply(ctx context.Context, controllerRevision | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ControllerRevision{} | 	emptyResult := &v1beta1.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(controllerrevisionsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var deploymentsKind = v1beta1.SchemeGroupVersion.WithKind("Deployment") | |||||||
| func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(deploymentsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||||
| 	emptyResult := &v1beta1.DeploymentList{} | 	emptyResult := &v1beta1.DeploymentList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested deployments. | // Watch returns a watch.Interface that watches the requested deployments. | ||||||
| func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(deploymentsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(deploymentsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch | |||||||
| func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta1.Deployment, opts v1.CreateOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta1.Deployment, opts v1.CreateOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta1.Deploy | |||||||
| func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta1.Deploy | |||||||
| func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentsResource, "status", c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeDeployments) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(deploymentsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeDeployments) Apply(ctx context.Context, deployment *appsv1beta1.Dep | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeDeployments) ApplyStatus(ctx context.Context, deployment *appsv1bet | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var statefulsetsKind = v1beta1.SchemeGroupVersion.WithKind("StatefulSet") | |||||||
| func (c *FakeStatefulSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.StatefulSet, err error) { | func (c *FakeStatefulSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(statefulsetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(statefulsetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeStatefulSets) Get(ctx context.Context, name string, options v1.GetO | |||||||
| func (c *FakeStatefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) { | func (c *FakeStatefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) { | ||||||
| 	emptyResult := &v1beta1.StatefulSetList{} | 	emptyResult := &v1beta1.StatefulSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(statefulsetsResource, statefulsetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(statefulsetsResource, statefulsetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeStatefulSets) List(ctx context.Context, opts v1.ListOptions) (resul | |||||||
| // Watch returns a watch.Interface that watches the requested statefulSets. | // Watch returns a watch.Interface that watches the requested statefulSets. | ||||||
| func (c *FakeStatefulSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeStatefulSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(statefulsetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(statefulsetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeStatefulSets) Watch(ctx context.Context, opts v1.ListOptions) (watc | |||||||
| func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1beta1.StatefulSet, opts v1.CreateOptions) (result *v1beta1.StatefulSet, err error) { | func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1beta1.StatefulSet, opts v1.CreateOptions) (result *v1beta1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(statefulsetsResource, c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1beta1.Stat | |||||||
| func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1beta1.StatefulSet, opts v1.UpdateOptions) (result *v1beta1.StatefulSet, err error) { | func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1beta1.StatefulSet, opts v1.UpdateOptions) (result *v1beta1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(statefulsetsResource, c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1beta1.Stat | |||||||
| func (c *FakeStatefulSets) UpdateStatus(ctx context.Context, statefulSet *v1beta1.StatefulSet, opts v1.UpdateOptions) (result *v1beta1.StatefulSet, err error) { | func (c *FakeStatefulSets) UpdateStatus(ctx context.Context, statefulSet *v1beta1.StatefulSet, opts v1.UpdateOptions) (result *v1beta1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(statefulsetsResource, "status", c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeStatefulSets) Delete(ctx context.Context, name string, opts v1.Dele | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(statefulsetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.StatefulSetList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.StatefulSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts v1.DeleteO | |||||||
| func (c *FakeStatefulSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.StatefulSet, err error) { | func (c *FakeStatefulSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeStatefulSets) Apply(ctx context.Context, statefulSet *appsv1beta1.S | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeStatefulSets) ApplyStatus(ctx context.Context, statefulSet *appsv1b | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.StatefulSet{} | 	emptyResult := &v1beta1.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var controllerrevisionsKind = v1beta2.SchemeGroupVersion.WithKind("ControllerRev | |||||||
| func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta2.ControllerRevision{} | 	emptyResult := &v1beta2.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(controllerrevisionsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(controllerrevisionsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeControllerRevisions) Get(ctx context.Context, name string, options | |||||||
| func (c *FakeControllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ControllerRevisionList, err error) { | func (c *FakeControllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ControllerRevisionList, err error) { | ||||||
| 	emptyResult := &v1beta2.ControllerRevisionList{} | 	emptyResult := &v1beta2.ControllerRevisionList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeControllerRevisions) List(ctx context.Context, opts v1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested controllerRevisions. | // Watch returns a watch.Interface that watches the requested controllerRevisions. | ||||||
| func (c *FakeControllerRevisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeControllerRevisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(controllerrevisionsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(controllerrevisionsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeControllerRevisions) Watch(ctx context.Context, opts v1.ListOptions | |||||||
| func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision *v1beta2.ControllerRevision, opts v1.CreateOptions) (result *v1beta2.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision *v1beta2.ControllerRevision, opts v1.CreateOptions) (result *v1beta2.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta2.ControllerRevision{} | 	emptyResult := &v1beta2.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(controllerrevisionsResource, c.ns, controllerRevision, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeControllerRevisions) Create(ctx context.Context, controllerRevision | |||||||
| func (c *FakeControllerRevisions) Update(ctx context.Context, controllerRevision *v1beta2.ControllerRevision, opts v1.UpdateOptions) (result *v1beta2.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Update(ctx context.Context, controllerRevision *v1beta2.ControllerRevision, opts v1.UpdateOptions) (result *v1beta2.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta2.ControllerRevision{} | 	emptyResult := &v1beta2.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(controllerrevisionsResource, c.ns, controllerRevision, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeControllerRevisions) Delete(ctx context.Context, name string, opts | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(controllerrevisionsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.ControllerRevisionList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.ControllerRevisionList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeControllerRevisions) DeleteCollection(ctx context.Context, opts v1. | |||||||
| func (c *FakeControllerRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.ControllerRevision, err error) { | func (c *FakeControllerRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.ControllerRevision, err error) { | ||||||
| 	emptyResult := &v1beta2.ControllerRevision{} | 	emptyResult := &v1beta2.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(controllerrevisionsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeControllerRevisions) Apply(ctx context.Context, controllerRevision | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.ControllerRevision{} | 	emptyResult := &v1beta2.ControllerRevision{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(controllerrevisionsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var daemonsetsKind = v1beta2.SchemeGroupVersion.WithKind("DaemonSet") | |||||||
| func (c *FakeDaemonSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.DaemonSet, err error) { | func (c *FakeDaemonSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(daemonsetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeDaemonSets) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
| func (c *FakeDaemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DaemonSetList, err error) { | func (c *FakeDaemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DaemonSetList, err error) { | ||||||
| 	emptyResult := &v1beta2.DaemonSetList{} | 	emptyResult := &v1beta2.DaemonSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(daemonsetsResource, daemonsetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeDaemonSets) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | // Watch returns a watch.Interface that watches the requested daemonSets. | ||||||
| func (c *FakeDaemonSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeDaemonSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(daemonsetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(daemonsetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeDaemonSets) Watch(ctx context.Context, opts v1.ListOptions) (watch. | |||||||
| func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1beta2.DaemonSet, opts v1.CreateOptions) (result *v1beta2.DaemonSet, err error) { | func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1beta2.DaemonSet, opts v1.CreateOptions) (result *v1beta2.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(daemonsetsResource, c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1beta2.DaemonSe | |||||||
| func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1beta2.DaemonSet, opts v1.UpdateOptions) (result *v1beta2.DaemonSet, err error) { | func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1beta2.DaemonSet, opts v1.UpdateOptions) (result *v1beta2.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(daemonsetsResource, c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1beta2.DaemonSe | |||||||
| func (c *FakeDaemonSets) UpdateStatus(ctx context.Context, daemonSet *v1beta2.DaemonSet, opts v1.UpdateOptions) (result *v1beta2.DaemonSet, err error) { | func (c *FakeDaemonSets) UpdateStatus(ctx context.Context, daemonSet *v1beta2.DaemonSet, opts v1.UpdateOptions) (result *v1beta2.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(daemonsetsResource, "status", c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeDaemonSets) Delete(ctx context.Context, name string, opts v1.Delete | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(daemonsetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.DaemonSetList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.DaemonSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts v1.DeleteOpt | |||||||
| func (c *FakeDaemonSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.DaemonSet, err error) { | func (c *FakeDaemonSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeDaemonSets) Apply(ctx context.Context, daemonSet *appsv1beta2.Daemo | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeDaemonSets) ApplyStatus(ctx context.Context, daemonSet *appsv1beta2 | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.DaemonSet{} | 	emptyResult := &v1beta2.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var deploymentsKind = v1beta2.SchemeGroupVersion.WithKind("Deployment") | |||||||
| func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.Deployment, err error) { | func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(deploymentsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DeploymentList, err error) { | func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DeploymentList, err error) { | ||||||
| 	emptyResult := &v1beta2.DeploymentList{} | 	emptyResult := &v1beta2.DeploymentList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested deployments. | // Watch returns a watch.Interface that watches the requested deployments. | ||||||
| func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(deploymentsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(deploymentsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch | |||||||
| func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta2.Deployment, opts v1.CreateOptions) (result *v1beta2.Deployment, err error) { | func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta2.Deployment, opts v1.CreateOptions) (result *v1beta2.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta2.Deploy | |||||||
| func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta2.Deployment, opts v1.UpdateOptions) (result *v1beta2.Deployment, err error) { | func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta2.Deployment, opts v1.UpdateOptions) (result *v1beta2.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta2.Deploy | |||||||
| func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1beta2.Deployment, opts v1.UpdateOptions) (result *v1beta2.Deployment, err error) { | func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1beta2.Deployment, opts v1.UpdateOptions) (result *v1beta2.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentsResource, "status", c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeDeployments) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(deploymentsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.DeploymentList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.DeploymentList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.Deployment, err error) { | func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeDeployments) Apply(ctx context.Context, deployment *appsv1beta2.Dep | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeDeployments) ApplyStatus(ctx context.Context, deployment *appsv1bet | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.Deployment{} | 	emptyResult := &v1beta2.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var replicasetsKind = v1beta2.SchemeGroupVersion.WithKind("ReplicaSet") | |||||||
| func (c *FakeReplicaSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.ReplicaSet, err error) { | func (c *FakeReplicaSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(replicasetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(replicasetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeReplicaSets) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeReplicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ReplicaSetList, err error) { | func (c *FakeReplicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ReplicaSetList, err error) { | ||||||
| 	emptyResult := &v1beta2.ReplicaSetList{} | 	emptyResult := &v1beta2.ReplicaSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(replicasetsResource, replicasetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(replicasetsResource, replicasetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeReplicaSets) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | // Watch returns a watch.Interface that watches the requested replicaSets. | ||||||
| func (c *FakeReplicaSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeReplicaSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(replicasetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(replicasetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeReplicaSets) Watch(ctx context.Context, opts v1.ListOptions) (watch | |||||||
| func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1beta2.ReplicaSet, opts v1.CreateOptions) (result *v1beta2.ReplicaSet, err error) { | func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1beta2.ReplicaSet, opts v1.CreateOptions) (result *v1beta2.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(replicasetsResource, c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1beta2.Replic | |||||||
| func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1beta2.ReplicaSet, opts v1.UpdateOptions) (result *v1beta2.ReplicaSet, err error) { | func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1beta2.ReplicaSet, opts v1.UpdateOptions) (result *v1beta2.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(replicasetsResource, c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1beta2.Replic | |||||||
| func (c *FakeReplicaSets) UpdateStatus(ctx context.Context, replicaSet *v1beta2.ReplicaSet, opts v1.UpdateOptions) (result *v1beta2.ReplicaSet, err error) { | func (c *FakeReplicaSets) UpdateStatus(ctx context.Context, replicaSet *v1beta2.ReplicaSet, opts v1.UpdateOptions) (result *v1beta2.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicasetsResource, "status", c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeReplicaSets) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(replicasetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.ReplicaSetList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.ReplicaSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeReplicaSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.ReplicaSet, err error) { | func (c *FakeReplicaSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeReplicaSets) Apply(ctx context.Context, replicaSet *appsv1beta2.Rep | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeReplicaSets) ApplyStatus(ctx context.Context, replicaSet *appsv1bet | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.ReplicaSet{} | 	emptyResult := &v1beta2.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var statefulsetsKind = v1beta2.SchemeGroupVersion.WithKind("StatefulSet") | |||||||
| func (c *FakeStatefulSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.StatefulSet, err error) { | func (c *FakeStatefulSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(statefulsetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(statefulsetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeStatefulSets) Get(ctx context.Context, name string, options v1.GetO | |||||||
| func (c *FakeStatefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.StatefulSetList, err error) { | func (c *FakeStatefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.StatefulSetList, err error) { | ||||||
| 	emptyResult := &v1beta2.StatefulSetList{} | 	emptyResult := &v1beta2.StatefulSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(statefulsetsResource, statefulsetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(statefulsetsResource, statefulsetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeStatefulSets) List(ctx context.Context, opts v1.ListOptions) (resul | |||||||
| // Watch returns a watch.Interface that watches the requested statefulSets. | // Watch returns a watch.Interface that watches the requested statefulSets. | ||||||
| func (c *FakeStatefulSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeStatefulSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(statefulsetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(statefulsetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeStatefulSets) Watch(ctx context.Context, opts v1.ListOptions) (watc | |||||||
| func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1beta2.StatefulSet, opts v1.CreateOptions) (result *v1beta2.StatefulSet, err error) { | func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1beta2.StatefulSet, opts v1.CreateOptions) (result *v1beta2.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(statefulsetsResource, c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeStatefulSets) Create(ctx context.Context, statefulSet *v1beta2.Stat | |||||||
| func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1beta2.StatefulSet, opts v1.UpdateOptions) (result *v1beta2.StatefulSet, err error) { | func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1beta2.StatefulSet, opts v1.UpdateOptions) (result *v1beta2.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(statefulsetsResource, c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeStatefulSets) Update(ctx context.Context, statefulSet *v1beta2.Stat | |||||||
| func (c *FakeStatefulSets) UpdateStatus(ctx context.Context, statefulSet *v1beta2.StatefulSet, opts v1.UpdateOptions) (result *v1beta2.StatefulSet, err error) { | func (c *FakeStatefulSets) UpdateStatus(ctx context.Context, statefulSet *v1beta2.StatefulSet, opts v1.UpdateOptions) (result *v1beta2.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(statefulsetsResource, "status", c.ns, statefulSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeStatefulSets) Delete(ctx context.Context, name string, opts v1.Dele | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(statefulsetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.StatefulSetList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.StatefulSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeStatefulSets) DeleteCollection(ctx context.Context, opts v1.DeleteO | |||||||
| func (c *FakeStatefulSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.StatefulSet, err error) { | func (c *FakeStatefulSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.StatefulSet, err error) { | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeStatefulSets) Apply(ctx context.Context, statefulSet *appsv1beta2.S | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeStatefulSets) ApplyStatus(ctx context.Context, statefulSet *appsv1b | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.StatefulSet{} | 	emptyResult := &v1beta2.StatefulSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -200,7 +200,7 @@ func (c *FakeStatefulSets) ApplyStatus(ctx context.Context, statefulSet *appsv1b | |||||||
| func (c *FakeStatefulSets) GetScale(ctx context.Context, statefulSetName string, options v1.GetOptions) (result *v1beta2.Scale, err error) { | func (c *FakeStatefulSets) GetScale(ctx context.Context, statefulSetName string, options v1.GetOptions) (result *v1beta2.Scale, err error) { | ||||||
| 	emptyResult := &v1beta2.Scale{} | 	emptyResult := &v1beta2.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(statefulsetsResource, c.ns, "scale", statefulSetName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(statefulsetsResource, c.ns, "scale", statefulSetName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -212,7 +212,7 @@ func (c *FakeStatefulSets) GetScale(ctx context.Context, statefulSetName string, | |||||||
| func (c *FakeStatefulSets) UpdateScale(ctx context.Context, statefulSetName string, scale *v1beta2.Scale, opts v1.UpdateOptions) (result *v1beta2.Scale, err error) { | func (c *FakeStatefulSets) UpdateScale(ctx context.Context, statefulSetName string, scale *v1beta2.Scale, opts v1.UpdateOptions) (result *v1beta2.Scale, err error) { | ||||||
| 	emptyResult := &v1beta2.Scale{} | 	emptyResult := &v1beta2.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "scale", c.ns, scale), &v1beta2.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(statefulsetsResource, "scale", c.ns, scale, opts), &v1beta2.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -232,7 +232,7 @@ func (c *FakeStatefulSets) ApplyScale(ctx context.Context, statefulSetName strin | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.Scale{} | 	emptyResult := &v1beta2.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, statefulSetName, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(statefulsetsResource, c.ns, statefulSetName, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectreviewsKind = v1.SchemeGroupVersion.WithKind("SelfSubjectReview") | |||||||
| func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1.SelfSubjectReview, opts metav1.CreateOptions) (result *v1.SelfSubjectReview, err error) { | func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1.SelfSubjectReview, opts metav1.CreateOptions) (result *v1.SelfSubjectReview, err error) { | ||||||
| 	emptyResult := &v1.SelfSubjectReview{} | 	emptyResult := &v1.SelfSubjectReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectreviewsResource, selfSubjectReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectreviewsResource, selfSubjectReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var tokenreviewsKind = v1.SchemeGroupVersion.WithKind("TokenReview") | |||||||
| func (c *FakeTokenReviews) Create(ctx context.Context, tokenReview *v1.TokenReview, opts metav1.CreateOptions) (result *v1.TokenReview, err error) { | func (c *FakeTokenReviews) Create(ctx context.Context, tokenReview *v1.TokenReview, opts metav1.CreateOptions) (result *v1.TokenReview, err error) { | ||||||
| 	emptyResult := &v1.TokenReview{} | 	emptyResult := &v1.TokenReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(tokenreviewsResource, tokenReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(tokenreviewsResource, tokenReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectreviewsKind = v1alpha1.SchemeGroupVersion.WithKind("SelfSubjectRe | |||||||
| func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1alpha1.SelfSubjectReview, opts v1.CreateOptions) (result *v1alpha1.SelfSubjectReview, err error) { | func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1alpha1.SelfSubjectReview, opts v1.CreateOptions) (result *v1alpha1.SelfSubjectReview, err error) { | ||||||
| 	emptyResult := &v1alpha1.SelfSubjectReview{} | 	emptyResult := &v1alpha1.SelfSubjectReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectreviewsResource, selfSubjectReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectreviewsResource, selfSubjectReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectreviewsKind = v1beta1.SchemeGroupVersion.WithKind("SelfSubjectRev | |||||||
| func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1beta1.SelfSubjectReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectReview, err error) { | func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1beta1.SelfSubjectReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectReview, err error) { | ||||||
| 	emptyResult := &v1beta1.SelfSubjectReview{} | 	emptyResult := &v1beta1.SelfSubjectReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectreviewsResource, selfSubjectReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectreviewsResource, selfSubjectReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var tokenreviewsKind = v1beta1.SchemeGroupVersion.WithKind("TokenReview") | |||||||
| func (c *FakeTokenReviews) Create(ctx context.Context, tokenReview *v1beta1.TokenReview, opts v1.CreateOptions) (result *v1beta1.TokenReview, err error) { | func (c *FakeTokenReviews) Create(ctx context.Context, tokenReview *v1beta1.TokenReview, opts v1.CreateOptions) (result *v1beta1.TokenReview, err error) { | ||||||
| 	emptyResult := &v1beta1.TokenReview{} | 	emptyResult := &v1beta1.TokenReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(tokenreviewsResource, tokenReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(tokenreviewsResource, tokenReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ var localsubjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("LocalSubject | |||||||
| func (c *FakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *v1.LocalSubjectAccessReview, err error) { | func (c *FakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *v1.LocalSubjectAccessReview, err error) { | ||||||
| 	emptyResult := &v1.LocalSubjectAccessReview{} | 	emptyResult := &v1.LocalSubjectAccessReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(localsubjectaccessreviewsResource, c.ns, localSubjectAccessReview), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(localsubjectaccessreviewsResource, c.ns, localSubjectAccessReview, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SelfSubjectAc | |||||||
| func (c *FakeSelfSubjectAccessReviews) Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SelfSubjectAccessReview, err error) { | func (c *FakeSelfSubjectAccessReviews) Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SelfSubjectAccessReview, err error) { | ||||||
| 	emptyResult := &v1.SelfSubjectAccessReview{} | 	emptyResult := &v1.SelfSubjectAccessReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectaccessreviewsResource, selfSubjectAccessReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectaccessreviewsResource, selfSubjectAccessReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectrulesreviewsKind = v1.SchemeGroupVersion.WithKind("SelfSubjectRul | |||||||
| func (c *FakeSelfSubjectRulesReviews) Create(ctx context.Context, selfSubjectRulesReview *v1.SelfSubjectRulesReview, opts metav1.CreateOptions) (result *v1.SelfSubjectRulesReview, err error) { | func (c *FakeSelfSubjectRulesReviews) Create(ctx context.Context, selfSubjectRulesReview *v1.SelfSubjectRulesReview, opts metav1.CreateOptions) (result *v1.SelfSubjectRulesReview, err error) { | ||||||
| 	emptyResult := &v1.SelfSubjectRulesReview{} | 	emptyResult := &v1.SelfSubjectRulesReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectrulesreviewsResource, selfSubjectRulesReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectrulesreviewsResource, selfSubjectRulesReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var subjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SubjectAccessRevi | |||||||
| func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReview, err error) { | func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReview, err error) { | ||||||
| 	emptyResult := &v1.SubjectAccessReview{} | 	emptyResult := &v1.SubjectAccessReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(subjectaccessreviewsResource, subjectAccessReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ var localsubjectaccessreviewsKind = v1beta1.SchemeGroupVersion.WithKind("LocalSu | |||||||
| func (c *FakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1beta1.LocalSubjectAccessReview, opts v1.CreateOptions) (result *v1beta1.LocalSubjectAccessReview, err error) { | func (c *FakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1beta1.LocalSubjectAccessReview, opts v1.CreateOptions) (result *v1beta1.LocalSubjectAccessReview, err error) { | ||||||
| 	emptyResult := &v1beta1.LocalSubjectAccessReview{} | 	emptyResult := &v1beta1.LocalSubjectAccessReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(localsubjectaccessreviewsResource, c.ns, localSubjectAccessReview), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(localsubjectaccessreviewsResource, c.ns, localSubjectAccessReview, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectaccessreviewsKind = v1beta1.SchemeGroupVersion.WithKind("SelfSubj | |||||||
| func (c *FakeSelfSubjectAccessReviews) Create(ctx context.Context, selfSubjectAccessReview *v1beta1.SelfSubjectAccessReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectAccessReview, err error) { | func (c *FakeSelfSubjectAccessReviews) Create(ctx context.Context, selfSubjectAccessReview *v1beta1.SelfSubjectAccessReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectAccessReview, err error) { | ||||||
| 	emptyResult := &v1beta1.SelfSubjectAccessReview{} | 	emptyResult := &v1beta1.SelfSubjectAccessReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectaccessreviewsResource, selfSubjectAccessReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectaccessreviewsResource, selfSubjectAccessReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var selfsubjectrulesreviewsKind = v1beta1.SchemeGroupVersion.WithKind("SelfSubje | |||||||
| func (c *FakeSelfSubjectRulesReviews) Create(ctx context.Context, selfSubjectRulesReview *v1beta1.SelfSubjectRulesReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectRulesReview, err error) { | func (c *FakeSelfSubjectRulesReviews) Create(ctx context.Context, selfSubjectRulesReview *v1beta1.SelfSubjectRulesReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectRulesReview, err error) { | ||||||
| 	emptyResult := &v1beta1.SelfSubjectRulesReview{} | 	emptyResult := &v1beta1.SelfSubjectRulesReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(selfsubjectrulesreviewsResource, selfSubjectRulesReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(selfsubjectrulesreviewsResource, selfSubjectRulesReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ var subjectaccessreviewsKind = v1beta1.SchemeGroupVersion.WithKind("SubjectAcces | |||||||
| func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1beta1.SubjectAccessReview, opts v1.CreateOptions) (result *v1beta1.SubjectAccessReview, err error) { | func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1beta1.SubjectAccessReview, opts v1.CreateOptions) (result *v1beta1.SubjectAccessReview, err error) { | ||||||
| 	emptyResult := &v1beta1.SubjectAccessReview{} | 	emptyResult := &v1beta1.SubjectAccessReview{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(subjectaccessreviewsResource, subjectAccessReview), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var horizontalpodautoscalersKind = v1.SchemeGroupVersion.WithKind("HorizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(horizontalpodautoscalersResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscalerList{} | 	emptyResult := &v1.HorizontalPodAutoscalerList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts metav1.Lis | |||||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||||
| func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(horizontalpodautoscalersResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts metav1.Li | |||||||
| func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v1.HorizontalPodAutoscaler, opts metav1.CreateOptions) (result *v1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v1.HorizontalPodAutoscaler, opts metav1.CreateOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v1.HorizontalPodAutoscaler, opts metav1.UpdateOptions) (result *v1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v1.HorizontalPodAutoscaler, opts metav1.UpdateOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v1.HorizontalPodAutoscaler, opts metav1.UpdateOptions) (result *v1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v1.HorizontalPodAutoscaler, opts metav1.UpdateOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeHorizontalPodAutoscalers) Delete(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(horizontalpodautoscalersResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.HorizontalPodAutoscalerList{}) | 	_, err := c.Fake.Invokes(action, &v1.HorizontalPodAutoscalerList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeHorizontalPodAutoscalers) Apply(ctx context.Context, horizontalPodA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeHorizontalPodAutoscalers) ApplyStatus(ctx context.Context, horizont | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.HorizontalPodAutoscaler{} | 	emptyResult := &v1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var horizontalpodautoscalersKind = v2.SchemeGroupVersion.WithKind("HorizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(horizontalpodautoscalersResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2.HorizontalPodAutoscalerList, err error) { | func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2.HorizontalPodAutoscalerList, err error) { | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscalerList{} | 	emptyResult := &v2.HorizontalPodAutoscalerList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOpt | |||||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||||
| func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(horizontalpodautoscalersResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOp | |||||||
| func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v2.HorizontalPodAutoscaler, opts v1.CreateOptions) (result *v2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v2.HorizontalPodAutoscaler, opts v1.CreateOptions) (result *v2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeHorizontalPodAutoscalers) Delete(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(horizontalpodautoscalersResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v2.HorizontalPodAutoscalerList{}) | 	_, err := c.Fake.Invokes(action, &v2.HorizontalPodAutoscalerList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeHorizontalPodAutoscalers) Apply(ctx context.Context, horizontalPodA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeHorizontalPodAutoscalers) ApplyStatus(ctx context.Context, horizont | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v2.HorizontalPodAutoscaler{} | 	emptyResult := &v2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var horizontalpodautoscalersKind = v2beta1.SchemeGroupVersion.WithKind("Horizont | |||||||
| func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(horizontalpodautoscalersResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { | func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscalerList{} | 	emptyResult := &v2beta1.HorizontalPodAutoscalerList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOpt | |||||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||||
| func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(horizontalpodautoscalersResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOp | |||||||
| func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler, opts v1.CreateOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler, opts v1.CreateOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeHorizontalPodAutoscalers) Delete(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(horizontalpodautoscalersResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v2beta1.HorizontalPodAutoscalerList{}) | 	_, err := c.Fake.Invokes(action, &v2beta1.HorizontalPodAutoscalerList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeHorizontalPodAutoscalers) Apply(ctx context.Context, horizontalPodA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeHorizontalPodAutoscalers) ApplyStatus(ctx context.Context, horizont | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta1.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var horizontalpodautoscalersKind = v2beta2.SchemeGroupVersion.WithKind("Horizont | |||||||
| func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(horizontalpodautoscalersResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(ctx context.Context, name string, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.HorizontalPodAutoscalerList, err error) { | func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.HorizontalPodAutoscalerList, err error) { | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscalerList{} | 	emptyResult := &v2beta2.HorizontalPodAutoscalerList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeHorizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOpt | |||||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||||
| func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(horizontalpodautoscalersResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeHorizontalPodAutoscalers) Watch(ctx context.Context, opts v1.ListOp | |||||||
| func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v2beta2.HorizontalPodAutoscaler, opts v1.CreateOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPodAutoscaler *v2beta2.HorizontalPodAutoscaler, opts v1.CreateOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeHorizontalPodAutoscalers) Create(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v2beta2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPodAutoscaler *v2beta2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeHorizontalPodAutoscalers) Update(ctx context.Context, horizontalPod | |||||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v2beta2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) UpdateStatus(ctx context.Context, horizontalPodAutoscaler *v2beta2.HorizontalPodAutoscaler, opts v1.UpdateOptions) (result *v2beta2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeHorizontalPodAutoscalers) Delete(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(horizontalpodautoscalersResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v2beta2.HorizontalPodAutoscalerList{}) | 	_, err := c.Fake.Invokes(action, &v2beta2.HorizontalPodAutoscalerList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeHorizontalPodAutoscalers) DeleteCollection(ctx context.Context, opt | |||||||
| func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.HorizontalPodAutoscaler, err error) { | func (c *FakeHorizontalPodAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.HorizontalPodAutoscaler, err error) { | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeHorizontalPodAutoscalers) Apply(ctx context.Context, horizontalPodA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeHorizontalPodAutoscalers) ApplyStatus(ctx context.Context, horizont | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | 	emptyResult := &v2beta2.HorizontalPodAutoscaler{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(horizontalpodautoscalersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var cronjobsKind = v1.SchemeGroupVersion.WithKind("CronJob") | |||||||
| func (c *FakeCronJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CronJob, err error) { | func (c *FakeCronJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CronJob, err error) { | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(cronjobsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(cronjobsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeCronJobs) Get(ctx context.Context, name string, options metav1.GetO | |||||||
| func (c *FakeCronJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CronJobList, err error) { | func (c *FakeCronJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CronJobList, err error) { | ||||||
| 	emptyResult := &v1.CronJobList{} | 	emptyResult := &v1.CronJobList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(cronjobsResource, cronjobsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(cronjobsResource, cronjobsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeCronJobs) List(ctx context.Context, opts metav1.ListOptions) (resul | |||||||
| // Watch returns a watch.Interface that watches the requested cronJobs. | // Watch returns a watch.Interface that watches the requested cronJobs. | ||||||
| func (c *FakeCronJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeCronJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(cronjobsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(cronjobsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeCronJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watc | |||||||
| func (c *FakeCronJobs) Create(ctx context.Context, cronJob *v1.CronJob, opts metav1.CreateOptions) (result *v1.CronJob, err error) { | func (c *FakeCronJobs) Create(ctx context.Context, cronJob *v1.CronJob, opts metav1.CreateOptions) (result *v1.CronJob, err error) { | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(cronjobsResource, c.ns, cronJob), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(cronjobsResource, c.ns, cronJob, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeCronJobs) Create(ctx context.Context, cronJob *v1.CronJob, opts met | |||||||
| func (c *FakeCronJobs) Update(ctx context.Context, cronJob *v1.CronJob, opts metav1.UpdateOptions) (result *v1.CronJob, err error) { | func (c *FakeCronJobs) Update(ctx context.Context, cronJob *v1.CronJob, opts metav1.UpdateOptions) (result *v1.CronJob, err error) { | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(cronjobsResource, c.ns, cronJob), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(cronjobsResource, c.ns, cronJob, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeCronJobs) Update(ctx context.Context, cronJob *v1.CronJob, opts met | |||||||
| func (c *FakeCronJobs) UpdateStatus(ctx context.Context, cronJob *v1.CronJob, opts metav1.UpdateOptions) (result *v1.CronJob, err error) { | func (c *FakeCronJobs) UpdateStatus(ctx context.Context, cronJob *v1.CronJob, opts metav1.UpdateOptions) (result *v1.CronJob, err error) { | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(cronjobsResource, "status", c.ns, cronJob), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(cronjobsResource, "status", c.ns, cronJob, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeCronJobs) Delete(ctx context.Context, name string, opts metav1.Dele | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeCronJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeCronJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(cronjobsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(cronjobsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.CronJobList{}) | 	_, err := c.Fake.Invokes(action, &v1.CronJobList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeCronJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteO | |||||||
| func (c *FakeCronJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CronJob, err error) { | func (c *FakeCronJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CronJob, err error) { | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(cronjobsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(cronjobsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeCronJobs) Apply(ctx context.Context, cronJob *batchv1.CronJobApplyC | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(cronjobsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(cronjobsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeCronJobs) ApplyStatus(ctx context.Context, cronJob *batchv1.CronJob | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.CronJob{} | 	emptyResult := &v1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(cronjobsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(cronjobsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var jobsKind = v1.SchemeGroupVersion.WithKind("Job") | |||||||
| func (c *FakeJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Job, err error) { | func (c *FakeJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Job, err error) { | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(jobsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(jobsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeJobs) Get(ctx context.Context, name string, options metav1.GetOptio | |||||||
| func (c *FakeJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.JobList, err error) { | func (c *FakeJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.JobList, err error) { | ||||||
| 	emptyResult := &v1.JobList{} | 	emptyResult := &v1.JobList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(jobsResource, jobsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(jobsResource, jobsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v | |||||||
| // Watch returns a watch.Interface that watches the requested jobs. | // Watch returns a watch.Interface that watches the requested jobs. | ||||||
| func (c *FakeJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(jobsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(jobsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.In | |||||||
| func (c *FakeJobs) Create(ctx context.Context, job *v1.Job, opts metav1.CreateOptions) (result *v1.Job, err error) { | func (c *FakeJobs) Create(ctx context.Context, job *v1.Job, opts metav1.CreateOptions) (result *v1.Job, err error) { | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(jobsResource, c.ns, job, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeJobs) Create(ctx context.Context, job *v1.Job, opts metav1.CreateOp | |||||||
| func (c *FakeJobs) Update(ctx context.Context, job *v1.Job, opts metav1.UpdateOptions) (result *v1.Job, err error) { | func (c *FakeJobs) Update(ctx context.Context, job *v1.Job, opts metav1.UpdateOptions) (result *v1.Job, err error) { | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(jobsResource, c.ns, job, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeJobs) Update(ctx context.Context, job *v1.Job, opts metav1.UpdateOp | |||||||
| func (c *FakeJobs) UpdateStatus(ctx context.Context, job *v1.Job, opts metav1.UpdateOptions) (result *v1.Job, err error) { | func (c *FakeJobs) UpdateStatus(ctx context.Context, job *v1.Job, opts metav1.UpdateOptions) (result *v1.Job, err error) { | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(jobsResource, "status", c.ns, job, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeJobs) Delete(ctx context.Context, name string, opts metav1.DeleteOp | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(jobsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.JobList{}) | 	_, err := c.Fake.Invokes(action, &v1.JobList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptio | |||||||
| func (c *FakeJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Job, err error) { | func (c *FakeJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Job, err error) { | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(jobsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(jobsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeJobs) Apply(ctx context.Context, job *batchv1.JobApplyConfiguration | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(jobsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(jobsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeJobs) ApplyStatus(ctx context.Context, job *batchv1.JobApplyConfigu | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Job{} | 	emptyResult := &v1.Job{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(jobsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(jobsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var cronjobsKind = v1beta1.SchemeGroupVersion.WithKind("CronJob") | |||||||
| func (c *FakeCronJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CronJob, err error) { | func (c *FakeCronJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CronJob, err error) { | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(cronjobsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(cronjobsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeCronJobs) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
| func (c *FakeCronJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CronJobList, err error) { | func (c *FakeCronJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CronJobList, err error) { | ||||||
| 	emptyResult := &v1beta1.CronJobList{} | 	emptyResult := &v1beta1.CronJobList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(cronjobsResource, cronjobsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(cronjobsResource, cronjobsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeCronJobs) List(ctx context.Context, opts v1.ListOptions) (result *v | |||||||
| // Watch returns a watch.Interface that watches the requested cronJobs. | // Watch returns a watch.Interface that watches the requested cronJobs. | ||||||
| func (c *FakeCronJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeCronJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(cronjobsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(cronjobsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeCronJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.In | |||||||
| func (c *FakeCronJobs) Create(ctx context.Context, cronJob *v1beta1.CronJob, opts v1.CreateOptions) (result *v1beta1.CronJob, err error) { | func (c *FakeCronJobs) Create(ctx context.Context, cronJob *v1beta1.CronJob, opts v1.CreateOptions) (result *v1beta1.CronJob, err error) { | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(cronjobsResource, c.ns, cronJob), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(cronjobsResource, c.ns, cronJob, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeCronJobs) Create(ctx context.Context, cronJob *v1beta1.CronJob, opt | |||||||
| func (c *FakeCronJobs) Update(ctx context.Context, cronJob *v1beta1.CronJob, opts v1.UpdateOptions) (result *v1beta1.CronJob, err error) { | func (c *FakeCronJobs) Update(ctx context.Context, cronJob *v1beta1.CronJob, opts v1.UpdateOptions) (result *v1beta1.CronJob, err error) { | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(cronjobsResource, c.ns, cronJob), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(cronjobsResource, c.ns, cronJob, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeCronJobs) Update(ctx context.Context, cronJob *v1beta1.CronJob, opt | |||||||
| func (c *FakeCronJobs) UpdateStatus(ctx context.Context, cronJob *v1beta1.CronJob, opts v1.UpdateOptions) (result *v1beta1.CronJob, err error) { | func (c *FakeCronJobs) UpdateStatus(ctx context.Context, cronJob *v1beta1.CronJob, opts v1.UpdateOptions) (result *v1beta1.CronJob, err error) { | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(cronjobsResource, "status", c.ns, cronJob), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(cronjobsResource, "status", c.ns, cronJob, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeCronJobs) Delete(ctx context.Context, name string, opts v1.DeleteOp | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeCronJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeCronJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(cronjobsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(cronjobsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.CronJobList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.CronJobList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeCronJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptio | |||||||
| func (c *FakeCronJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CronJob, err error) { | func (c *FakeCronJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CronJob, err error) { | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(cronjobsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(cronjobsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeCronJobs) Apply(ctx context.Context, cronJob *batchv1beta1.CronJobA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(cronjobsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(cronjobsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeCronJobs) ApplyStatus(ctx context.Context, cronJob *batchv1beta1.Cr | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.CronJob{} | 	emptyResult := &v1beta1.CronJob{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(cronjobsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(cronjobsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var certificatesigningrequestsKind = v1.SchemeGroupVersion.WithKind("Certificate | |||||||
| func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(certificatesigningrequestsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(certificatesigningrequestsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, o | |||||||
| func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error) { | func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequestList{} | 	emptyResult := &v1.CertificateSigningRequestList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(certificatesigningrequestsResource, certificatesigningrequestsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(certificatesigningrequestsResource, certificatesigningrequestsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts metav1.L | |||||||
| // Watch returns a watch.Interface that watches the requested certificateSigningRequests. | // Watch returns a watch.Interface that watches the requested certificateSigningRequests. | ||||||
| func (c *FakeCertificateSigningRequests) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeCertificateSigningRequests) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(certificatesigningrequestsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(certificatesigningrequestsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a certificateSigningRequest and creates it.  Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | // Create takes the representation of a certificateSigningRequest and creates it.  Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | ||||||
| func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.CreateOptions) (result *v1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.CreateOptions) (result *v1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(certificatesigningrequestsResource, certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(certificatesigningrequestsResource, certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificate | |||||||
| func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(certificatesigningrequestsResource, certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(certificatesigningrequestsResource, certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificate | |||||||
| func (c *FakeCertificateSigningRequests) UpdateStatus(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) UpdateStatus(ctx context.Context, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(certificatesigningrequestsResource, "status", certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(certificatesigningrequestsResource, "status", certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeCertificateSigningRequests) Delete(ctx context.Context, name string | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(certificatesigningrequestsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(certificatesigningrequestsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.CertificateSigningRequestList{}) | 	_, err := c.Fake.Invokes(action, &v1.CertificateSigningRequestList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, o | |||||||
| func (c *FakeCertificateSigningRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(certificatesigningrequestsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(certificatesigningrequestsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeCertificateSigningRequests) Apply(ctx context.Context, certificateS | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(certificatesigningrequestsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(certificatesigningrequestsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeCertificateSigningRequests) ApplyStatus(ctx context.Context, certif | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(certificatesigningrequestsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(certificatesigningrequestsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -189,7 +189,7 @@ func (c *FakeCertificateSigningRequests) ApplyStatus(ctx context.Context, certif | |||||||
| func (c *FakeCertificateSigningRequests) UpdateApproval(ctx context.Context, certificateSigningRequestName string, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) UpdateApproval(ctx context.Context, certificateSigningRequestName string, certificateSigningRequest *v1.CertificateSigningRequest, opts metav1.UpdateOptions) (result *v1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1.CertificateSigningRequest{} | 	emptyResult := &v1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(certificatesigningrequestsResource, "approval", certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(certificatesigningrequestsResource, "approval", certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var clustertrustbundlesKind = v1alpha1.SchemeGroupVersion.WithKind("ClusterTrust | |||||||
| func (c *FakeClusterTrustBundles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterTrustBundle, err error) { | func (c *FakeClusterTrustBundles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterTrustBundle, err error) { | ||||||
| 	emptyResult := &v1alpha1.ClusterTrustBundle{} | 	emptyResult := &v1alpha1.ClusterTrustBundle{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(clustertrustbundlesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(clustertrustbundlesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeClusterTrustBundles) Get(ctx context.Context, name string, options | |||||||
| func (c *FakeClusterTrustBundles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterTrustBundleList, err error) { | func (c *FakeClusterTrustBundles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterTrustBundleList, err error) { | ||||||
| 	emptyResult := &v1alpha1.ClusterTrustBundleList{} | 	emptyResult := &v1alpha1.ClusterTrustBundleList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(clustertrustbundlesResource, clustertrustbundlesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(clustertrustbundlesResource, clustertrustbundlesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeClusterTrustBundles) List(ctx context.Context, opts v1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested clusterTrustBundles. | // Watch returns a watch.Interface that watches the requested clusterTrustBundles. | ||||||
| func (c *FakeClusterTrustBundles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeClusterTrustBundles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(clustertrustbundlesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(clustertrustbundlesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a clusterTrustBundle and creates it.  Returns the server's representation of the clusterTrustBundle, and an error, if there is any. | // Create takes the representation of a clusterTrustBundle and creates it.  Returns the server's representation of the clusterTrustBundle, and an error, if there is any. | ||||||
| func (c *FakeClusterTrustBundles) Create(ctx context.Context, clusterTrustBundle *v1alpha1.ClusterTrustBundle, opts v1.CreateOptions) (result *v1alpha1.ClusterTrustBundle, err error) { | func (c *FakeClusterTrustBundles) Create(ctx context.Context, clusterTrustBundle *v1alpha1.ClusterTrustBundle, opts v1.CreateOptions) (result *v1alpha1.ClusterTrustBundle, err error) { | ||||||
| 	emptyResult := &v1alpha1.ClusterTrustBundle{} | 	emptyResult := &v1alpha1.ClusterTrustBundle{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(clustertrustbundlesResource, clusterTrustBundle), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(clustertrustbundlesResource, clusterTrustBundle, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeClusterTrustBundles) Create(ctx context.Context, clusterTrustBundle | |||||||
| func (c *FakeClusterTrustBundles) Update(ctx context.Context, clusterTrustBundle *v1alpha1.ClusterTrustBundle, opts v1.UpdateOptions) (result *v1alpha1.ClusterTrustBundle, err error) { | func (c *FakeClusterTrustBundles) Update(ctx context.Context, clusterTrustBundle *v1alpha1.ClusterTrustBundle, opts v1.UpdateOptions) (result *v1alpha1.ClusterTrustBundle, err error) { | ||||||
| 	emptyResult := &v1alpha1.ClusterTrustBundle{} | 	emptyResult := &v1alpha1.ClusterTrustBundle{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(clustertrustbundlesResource, clusterTrustBundle), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(clustertrustbundlesResource, clusterTrustBundle, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeClusterTrustBundles) Delete(ctx context.Context, name string, opts | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeClusterTrustBundles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeClusterTrustBundles) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(clustertrustbundlesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(clustertrustbundlesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1alpha1.ClusterTrustBundleList{}) | 	_, err := c.Fake.Invokes(action, &v1alpha1.ClusterTrustBundleList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeClusterTrustBundles) DeleteCollection(ctx context.Context, opts v1. | |||||||
| func (c *FakeClusterTrustBundles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterTrustBundle, err error) { | func (c *FakeClusterTrustBundles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterTrustBundle, err error) { | ||||||
| 	emptyResult := &v1alpha1.ClusterTrustBundle{} | 	emptyResult := &v1alpha1.ClusterTrustBundle{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(clustertrustbundlesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertrustbundlesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeClusterTrustBundles) Apply(ctx context.Context, clusterTrustBundle | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.ClusterTrustBundle{} | 	emptyResult := &v1alpha1.ClusterTrustBundle{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(clustertrustbundlesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertrustbundlesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var certificatesigningrequestsKind = v1beta1.SchemeGroupVersion.WithKind("Certif | |||||||
| func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(certificatesigningrequestsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(certificatesigningrequestsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeCertificateSigningRequests) Get(ctx context.Context, name string, o | |||||||
| func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CertificateSigningRequestList, err error) { | func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CertificateSigningRequestList, err error) { | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequestList{} | 	emptyResult := &v1beta1.CertificateSigningRequestList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(certificatesigningrequestsResource, certificatesigningrequestsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(certificatesigningrequestsResource, certificatesigningrequestsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeCertificateSigningRequests) List(ctx context.Context, opts v1.ListO | |||||||
| // Watch returns a watch.Interface that watches the requested certificateSigningRequests. | // Watch returns a watch.Interface that watches the requested certificateSigningRequests. | ||||||
| func (c *FakeCertificateSigningRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeCertificateSigningRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(certificatesigningrequestsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(certificatesigningrequestsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a certificateSigningRequest and creates it.  Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | // Create takes the representation of a certificateSigningRequest and creates it.  Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | ||||||
| func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificateSigningRequest *v1beta1.CertificateSigningRequest, opts v1.CreateOptions) (result *v1beta1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificateSigningRequest *v1beta1.CertificateSigningRequest, opts v1.CreateOptions) (result *v1beta1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(certificatesigningrequestsResource, certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(certificatesigningrequestsResource, certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeCertificateSigningRequests) Create(ctx context.Context, certificate | |||||||
| func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificateSigningRequest *v1beta1.CertificateSigningRequest, opts v1.UpdateOptions) (result *v1beta1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificateSigningRequest *v1beta1.CertificateSigningRequest, opts v1.UpdateOptions) (result *v1beta1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(certificatesigningrequestsResource, certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(certificatesigningrequestsResource, certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeCertificateSigningRequests) Update(ctx context.Context, certificate | |||||||
| func (c *FakeCertificateSigningRequests) UpdateStatus(ctx context.Context, certificateSigningRequest *v1beta1.CertificateSigningRequest, opts v1.UpdateOptions) (result *v1beta1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) UpdateStatus(ctx context.Context, certificateSigningRequest *v1beta1.CertificateSigningRequest, opts v1.UpdateOptions) (result *v1beta1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(certificatesigningrequestsResource, "status", certificateSigningRequest), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(certificatesigningrequestsResource, "status", certificateSigningRequest, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeCertificateSigningRequests) Delete(ctx context.Context, name string | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(certificatesigningrequestsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(certificatesigningrequestsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.CertificateSigningRequestList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.CertificateSigningRequestList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeCertificateSigningRequests) DeleteCollection(ctx context.Context, o | |||||||
| func (c *FakeCertificateSigningRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CertificateSigningRequest, err error) { | func (c *FakeCertificateSigningRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CertificateSigningRequest, err error) { | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(certificatesigningrequestsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(certificatesigningrequestsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeCertificateSigningRequests) Apply(ctx context.Context, certificateS | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(certificatesigningrequestsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(certificatesigningrequestsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeCertificateSigningRequests) ApplyStatus(ctx context.Context, certif | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.CertificateSigningRequest{} | 	emptyResult := &v1beta1.CertificateSigningRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(certificatesigningrequestsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(certificatesigningrequestsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var leasesKind = v1.SchemeGroupVersion.WithKind("Lease") | |||||||
| func (c *FakeLeases) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Lease, err error) { | func (c *FakeLeases) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Lease, err error) { | ||||||
| 	emptyResult := &v1.Lease{} | 	emptyResult := &v1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(leasesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(leasesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeLeases) Get(ctx context.Context, name string, options metav1.GetOpt | |||||||
| func (c *FakeLeases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LeaseList, err error) { | func (c *FakeLeases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LeaseList, err error) { | ||||||
| 	emptyResult := &v1.LeaseList{} | 	emptyResult := &v1.LeaseList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(leasesResource, leasesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(leasesResource, leasesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeLeases) List(ctx context.Context, opts metav1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested leases. | // Watch returns a watch.Interface that watches the requested leases. | ||||||
| func (c *FakeLeases) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeLeases) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(leasesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(leasesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeLeases) Watch(ctx context.Context, opts metav1.ListOptions) (watch. | |||||||
| func (c *FakeLeases) Create(ctx context.Context, lease *v1.Lease, opts metav1.CreateOptions) (result *v1.Lease, err error) { | func (c *FakeLeases) Create(ctx context.Context, lease *v1.Lease, opts metav1.CreateOptions) (result *v1.Lease, err error) { | ||||||
| 	emptyResult := &v1.Lease{} | 	emptyResult := &v1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(leasesResource, c.ns, lease), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(leasesResource, c.ns, lease, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeLeases) Create(ctx context.Context, lease *v1.Lease, opts metav1.Cr | |||||||
| func (c *FakeLeases) Update(ctx context.Context, lease *v1.Lease, opts metav1.UpdateOptions) (result *v1.Lease, err error) { | func (c *FakeLeases) Update(ctx context.Context, lease *v1.Lease, opts metav1.UpdateOptions) (result *v1.Lease, err error) { | ||||||
| 	emptyResult := &v1.Lease{} | 	emptyResult := &v1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(leasesResource, c.ns, lease), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(leasesResource, c.ns, lease, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeLeases) Delete(ctx context.Context, name string, opts metav1.Delete | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeLeases) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeLeases) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(leasesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(leasesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.LeaseList{}) | 	_, err := c.Fake.Invokes(action, &v1.LeaseList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeLeases) DeleteCollection(ctx context.Context, opts metav1.DeleteOpt | |||||||
| func (c *FakeLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Lease, err error) { | func (c *FakeLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Lease, err error) { | ||||||
| 	emptyResult := &v1.Lease{} | 	emptyResult := &v1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(leasesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(leasesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeLeases) Apply(ctx context.Context, lease *coordinationv1.LeaseApply | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Lease{} | 	emptyResult := &v1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(leasesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(leasesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var leasesKind = v1beta1.SchemeGroupVersion.WithKind("Lease") | |||||||
| func (c *FakeLeases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Lease, err error) { | func (c *FakeLeases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Lease, err error) { | ||||||
| 	emptyResult := &v1beta1.Lease{} | 	emptyResult := &v1beta1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(leasesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(leasesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeLeases) Get(ctx context.Context, name string, options v1.GetOptions | |||||||
| func (c *FakeLeases) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LeaseList, err error) { | func (c *FakeLeases) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LeaseList, err error) { | ||||||
| 	emptyResult := &v1beta1.LeaseList{} | 	emptyResult := &v1beta1.LeaseList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(leasesResource, leasesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(leasesResource, leasesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeLeases) List(ctx context.Context, opts v1.ListOptions) (result *v1b | |||||||
| // Watch returns a watch.Interface that watches the requested leases. | // Watch returns a watch.Interface that watches the requested leases. | ||||||
| func (c *FakeLeases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeLeases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(leasesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(leasesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeLeases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inte | |||||||
| func (c *FakeLeases) Create(ctx context.Context, lease *v1beta1.Lease, opts v1.CreateOptions) (result *v1beta1.Lease, err error) { | func (c *FakeLeases) Create(ctx context.Context, lease *v1beta1.Lease, opts v1.CreateOptions) (result *v1beta1.Lease, err error) { | ||||||
| 	emptyResult := &v1beta1.Lease{} | 	emptyResult := &v1beta1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(leasesResource, c.ns, lease), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(leasesResource, c.ns, lease, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeLeases) Create(ctx context.Context, lease *v1beta1.Lease, opts v1.C | |||||||
| func (c *FakeLeases) Update(ctx context.Context, lease *v1beta1.Lease, opts v1.UpdateOptions) (result *v1beta1.Lease, err error) { | func (c *FakeLeases) Update(ctx context.Context, lease *v1beta1.Lease, opts v1.UpdateOptions) (result *v1beta1.Lease, err error) { | ||||||
| 	emptyResult := &v1beta1.Lease{} | 	emptyResult := &v1beta1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(leasesResource, c.ns, lease), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(leasesResource, c.ns, lease, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeLeases) Delete(ctx context.Context, name string, opts v1.DeleteOpti | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeLeases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeLeases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(leasesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(leasesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.LeaseList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.LeaseList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeLeases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions | |||||||
| func (c *FakeLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Lease, err error) { | func (c *FakeLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Lease, err error) { | ||||||
| 	emptyResult := &v1beta1.Lease{} | 	emptyResult := &v1beta1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(leasesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(leasesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeLeases) Apply(ctx context.Context, lease *coordinationv1beta1.Lease | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Lease{} | 	emptyResult := &v1beta1.Lease{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(leasesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(leasesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var componentstatusesKind = v1.SchemeGroupVersion.WithKind("ComponentStatus") | |||||||
| func (c *FakeComponentStatuses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ComponentStatus, err error) { | func (c *FakeComponentStatuses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ComponentStatus, err error) { | ||||||
| 	emptyResult := &v1.ComponentStatus{} | 	emptyResult := &v1.ComponentStatus{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(componentstatusesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(componentstatusesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeComponentStatuses) Get(ctx context.Context, name string, options me | |||||||
| func (c *FakeComponentStatuses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ComponentStatusList, err error) { | func (c *FakeComponentStatuses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ComponentStatusList, err error) { | ||||||
| 	emptyResult := &v1.ComponentStatusList{} | 	emptyResult := &v1.ComponentStatusList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(componentstatusesResource, componentstatusesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(componentstatusesResource, componentstatusesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeComponentStatuses) List(ctx context.Context, opts metav1.ListOption | |||||||
| // Watch returns a watch.Interface that watches the requested componentStatuses. | // Watch returns a watch.Interface that watches the requested componentStatuses. | ||||||
| func (c *FakeComponentStatuses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeComponentStatuses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(componentstatusesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(componentstatusesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a componentStatus and creates it.  Returns the server's representation of the componentStatus, and an error, if there is any. | // Create takes the representation of a componentStatus and creates it.  Returns the server's representation of the componentStatus, and an error, if there is any. | ||||||
| func (c *FakeComponentStatuses) Create(ctx context.Context, componentStatus *v1.ComponentStatus, opts metav1.CreateOptions) (result *v1.ComponentStatus, err error) { | func (c *FakeComponentStatuses) Create(ctx context.Context, componentStatus *v1.ComponentStatus, opts metav1.CreateOptions) (result *v1.ComponentStatus, err error) { | ||||||
| 	emptyResult := &v1.ComponentStatus{} | 	emptyResult := &v1.ComponentStatus{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(componentstatusesResource, componentStatus), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(componentstatusesResource, componentStatus, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeComponentStatuses) Create(ctx context.Context, componentStatus *v1. | |||||||
| func (c *FakeComponentStatuses) Update(ctx context.Context, componentStatus *v1.ComponentStatus, opts metav1.UpdateOptions) (result *v1.ComponentStatus, err error) { | func (c *FakeComponentStatuses) Update(ctx context.Context, componentStatus *v1.ComponentStatus, opts metav1.UpdateOptions) (result *v1.ComponentStatus, err error) { | ||||||
| 	emptyResult := &v1.ComponentStatus{} | 	emptyResult := &v1.ComponentStatus{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(componentstatusesResource, componentStatus), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(componentstatusesResource, componentStatus, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeComponentStatuses) Delete(ctx context.Context, name string, opts me | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeComponentStatuses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeComponentStatuses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(componentstatusesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(componentstatusesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ComponentStatusList{}) | 	_, err := c.Fake.Invokes(action, &v1.ComponentStatusList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeComponentStatuses) DeleteCollection(ctx context.Context, opts metav | |||||||
| func (c *FakeComponentStatuses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ComponentStatus, err error) { | func (c *FakeComponentStatuses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ComponentStatus, err error) { | ||||||
| 	emptyResult := &v1.ComponentStatus{} | 	emptyResult := &v1.ComponentStatus{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(componentstatusesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(componentstatusesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeComponentStatuses) Apply(ctx context.Context, componentStatus *core | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ComponentStatus{} | 	emptyResult := &v1.ComponentStatus{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(componentstatusesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(componentstatusesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var configmapsKind = v1.SchemeGroupVersion.WithKind("ConfigMap") | |||||||
| func (c *FakeConfigMaps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConfigMap, err error) { | func (c *FakeConfigMaps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConfigMap, err error) { | ||||||
| 	emptyResult := &v1.ConfigMap{} | 	emptyResult := &v1.ConfigMap{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(configmapsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(configmapsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeConfigMaps) Get(ctx context.Context, name string, options metav1.Ge | |||||||
| func (c *FakeConfigMaps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigMapList, err error) { | func (c *FakeConfigMaps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigMapList, err error) { | ||||||
| 	emptyResult := &v1.ConfigMapList{} | 	emptyResult := &v1.ConfigMapList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(configmapsResource, configmapsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(configmapsResource, configmapsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeConfigMaps) List(ctx context.Context, opts metav1.ListOptions) (res | |||||||
| // Watch returns a watch.Interface that watches the requested configMaps. | // Watch returns a watch.Interface that watches the requested configMaps. | ||||||
| func (c *FakeConfigMaps) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeConfigMaps) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(configmapsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(configmapsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeConfigMaps) Watch(ctx context.Context, opts metav1.ListOptions) (wa | |||||||
| func (c *FakeConfigMaps) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (result *v1.ConfigMap, err error) { | func (c *FakeConfigMaps) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (result *v1.ConfigMap, err error) { | ||||||
| 	emptyResult := &v1.ConfigMap{} | 	emptyResult := &v1.ConfigMap{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(configmapsResource, c.ns, configMap, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeConfigMaps) Create(ctx context.Context, configMap *v1.ConfigMap, op | |||||||
| func (c *FakeConfigMaps) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (result *v1.ConfigMap, err error) { | func (c *FakeConfigMaps) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (result *v1.ConfigMap, err error) { | ||||||
| 	emptyResult := &v1.ConfigMap{} | 	emptyResult := &v1.ConfigMap{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(configmapsResource, c.ns, configMap, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts metav1.De | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeConfigMaps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeConfigMaps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(configmapsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ConfigMapList{}) | 	_, err := c.Fake.Invokes(action, &v1.ConfigMapList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeConfigMaps) DeleteCollection(ctx context.Context, opts metav1.Delet | |||||||
| func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConfigMap, err error) { | func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConfigMap, err error) { | ||||||
| 	emptyResult := &v1.ConfigMap{} | 	emptyResult := &v1.ConfigMap{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(configmapsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(configmapsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeConfigMaps) Apply(ctx context.Context, configMap *corev1.ConfigMapA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ConfigMap{} | 	emptyResult := &v1.ConfigMap{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(configmapsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(configmapsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var endpointsKind = v1.SchemeGroupVersion.WithKind("Endpoints") | |||||||
| func (c *FakeEndpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Endpoints, err error) { | func (c *FakeEndpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Endpoints, err error) { | ||||||
| 	emptyResult := &v1.Endpoints{} | 	emptyResult := &v1.Endpoints{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(endpointsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(endpointsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeEndpoints) Get(ctx context.Context, name string, options metav1.Get | |||||||
| func (c *FakeEndpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointsList, err error) { | func (c *FakeEndpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointsList, err error) { | ||||||
| 	emptyResult := &v1.EndpointsList{} | 	emptyResult := &v1.EndpointsList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(endpointsResource, endpointsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(endpointsResource, endpointsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeEndpoints) List(ctx context.Context, opts metav1.ListOptions) (resu | |||||||
| // Watch returns a watch.Interface that watches the requested endpoints. | // Watch returns a watch.Interface that watches the requested endpoints. | ||||||
| func (c *FakeEndpoints) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeEndpoints) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(endpointsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(endpointsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeEndpoints) Watch(ctx context.Context, opts metav1.ListOptions) (wat | |||||||
| func (c *FakeEndpoints) Create(ctx context.Context, endpoints *v1.Endpoints, opts metav1.CreateOptions) (result *v1.Endpoints, err error) { | func (c *FakeEndpoints) Create(ctx context.Context, endpoints *v1.Endpoints, opts metav1.CreateOptions) (result *v1.Endpoints, err error) { | ||||||
| 	emptyResult := &v1.Endpoints{} | 	emptyResult := &v1.Endpoints{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(endpointsResource, c.ns, endpoints), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(endpointsResource, c.ns, endpoints, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeEndpoints) Create(ctx context.Context, endpoints *v1.Endpoints, opt | |||||||
| func (c *FakeEndpoints) Update(ctx context.Context, endpoints *v1.Endpoints, opts metav1.UpdateOptions) (result *v1.Endpoints, err error) { | func (c *FakeEndpoints) Update(ctx context.Context, endpoints *v1.Endpoints, opts metav1.UpdateOptions) (result *v1.Endpoints, err error) { | ||||||
| 	emptyResult := &v1.Endpoints{} | 	emptyResult := &v1.Endpoints{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(endpointsResource, c.ns, endpoints), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(endpointsResource, c.ns, endpoints, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeEndpoints) Delete(ctx context.Context, name string, opts metav1.Del | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeEndpoints) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeEndpoints) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(endpointsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(endpointsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.EndpointsList{}) | 	_, err := c.Fake.Invokes(action, &v1.EndpointsList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeEndpoints) DeleteCollection(ctx context.Context, opts metav1.Delete | |||||||
| func (c *FakeEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Endpoints, err error) { | func (c *FakeEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Endpoints, err error) { | ||||||
| 	emptyResult := &v1.Endpoints{} | 	emptyResult := &v1.Endpoints{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(endpointsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(endpointsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeEndpoints) Apply(ctx context.Context, endpoints *corev1.EndpointsAp | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Endpoints{} | 	emptyResult := &v1.Endpoints{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(endpointsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(endpointsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var eventsKind = v1.SchemeGroupVersion.WithKind("Event") | |||||||
| func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error) { | func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(eventsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOpt | |||||||
| func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | ||||||
| 	emptyResult := &v1.EventList{} | 	emptyResult := &v1.EventList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(eventsResource, eventsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested events. | // Watch returns a watch.Interface that watches the requested events. | ||||||
| func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(eventsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(eventsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch. | |||||||
| func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error) { | func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(eventsResource, c.ns, event, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.Cr | |||||||
| func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { | func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(eventsResource, c.ns, event, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeEvents) Delete(ctx context.Context, name string, opts metav1.Delete | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(eventsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.EventList{}) | 	_, err := c.Fake.Invokes(action, &v1.EventList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOpt | |||||||
| func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) { | func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(eventsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeEvents) Apply(ctx context.Context, event *corev1.EventApplyConfigur | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(eventsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var limitrangesKind = v1.SchemeGroupVersion.WithKind("LimitRange") | |||||||
| func (c *FakeLimitRanges) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LimitRange, err error) { | func (c *FakeLimitRanges) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LimitRange, err error) { | ||||||
| 	emptyResult := &v1.LimitRange{} | 	emptyResult := &v1.LimitRange{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(limitrangesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(limitrangesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeLimitRanges) Get(ctx context.Context, name string, options metav1.G | |||||||
| func (c *FakeLimitRanges) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LimitRangeList, err error) { | func (c *FakeLimitRanges) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LimitRangeList, err error) { | ||||||
| 	emptyResult := &v1.LimitRangeList{} | 	emptyResult := &v1.LimitRangeList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(limitrangesResource, limitrangesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(limitrangesResource, limitrangesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeLimitRanges) List(ctx context.Context, opts metav1.ListOptions) (re | |||||||
| // Watch returns a watch.Interface that watches the requested limitRanges. | // Watch returns a watch.Interface that watches the requested limitRanges. | ||||||
| func (c *FakeLimitRanges) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeLimitRanges) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(limitrangesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(limitrangesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeLimitRanges) Watch(ctx context.Context, opts metav1.ListOptions) (w | |||||||
| func (c *FakeLimitRanges) Create(ctx context.Context, limitRange *v1.LimitRange, opts metav1.CreateOptions) (result *v1.LimitRange, err error) { | func (c *FakeLimitRanges) Create(ctx context.Context, limitRange *v1.LimitRange, opts metav1.CreateOptions) (result *v1.LimitRange, err error) { | ||||||
| 	emptyResult := &v1.LimitRange{} | 	emptyResult := &v1.LimitRange{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(limitrangesResource, c.ns, limitRange), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(limitrangesResource, c.ns, limitRange, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeLimitRanges) Create(ctx context.Context, limitRange *v1.LimitRange, | |||||||
| func (c *FakeLimitRanges) Update(ctx context.Context, limitRange *v1.LimitRange, opts metav1.UpdateOptions) (result *v1.LimitRange, err error) { | func (c *FakeLimitRanges) Update(ctx context.Context, limitRange *v1.LimitRange, opts metav1.UpdateOptions) (result *v1.LimitRange, err error) { | ||||||
| 	emptyResult := &v1.LimitRange{} | 	emptyResult := &v1.LimitRange{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(limitrangesResource, c.ns, limitRange), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(limitrangesResource, c.ns, limitRange, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeLimitRanges) Delete(ctx context.Context, name string, opts metav1.D | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeLimitRanges) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeLimitRanges) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(limitrangesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(limitrangesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.LimitRangeList{}) | 	_, err := c.Fake.Invokes(action, &v1.LimitRangeList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeLimitRanges) DeleteCollection(ctx context.Context, opts metav1.Dele | |||||||
| func (c *FakeLimitRanges) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LimitRange, err error) { | func (c *FakeLimitRanges) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LimitRange, err error) { | ||||||
| 	emptyResult := &v1.LimitRange{} | 	emptyResult := &v1.LimitRange{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(limitrangesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(limitrangesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeLimitRanges) Apply(ctx context.Context, limitRange *corev1.LimitRan | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.LimitRange{} | 	emptyResult := &v1.LimitRange{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(limitrangesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(limitrangesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var namespacesKind = v1.SchemeGroupVersion.WithKind("Namespace") | |||||||
| func (c *FakeNamespaces) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Namespace, err error) { | func (c *FakeNamespaces) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Namespace, err error) { | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(namespacesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(namespacesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeNamespaces) Get(ctx context.Context, name string, options metav1.Ge | |||||||
| func (c *FakeNamespaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NamespaceList, err error) { | func (c *FakeNamespaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NamespaceList, err error) { | ||||||
| 	emptyResult := &v1.NamespaceList{} | 	emptyResult := &v1.NamespaceList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(namespacesResource, namespacesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(namespacesResource, namespacesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeNamespaces) List(ctx context.Context, opts metav1.ListOptions) (res | |||||||
| // Watch returns a watch.Interface that watches the requested namespaces. | // Watch returns a watch.Interface that watches the requested namespaces. | ||||||
| func (c *FakeNamespaces) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeNamespaces) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(namespacesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(namespacesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||||
| func (c *FakeNamespaces) Create(ctx context.Context, namespace *v1.Namespace, opts metav1.CreateOptions) (result *v1.Namespace, err error) { | func (c *FakeNamespaces) Create(ctx context.Context, namespace *v1.Namespace, opts metav1.CreateOptions) (result *v1.Namespace, err error) { | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(namespacesResource, namespace, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeNamespaces) Create(ctx context.Context, namespace *v1.Namespace, op | |||||||
| func (c *FakeNamespaces) Update(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (result *v1.Namespace, err error) { | func (c *FakeNamespaces) Update(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (result *v1.Namespace, err error) { | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(namespacesResource, namespace, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeNamespaces) Update(ctx context.Context, namespace *v1.Namespace, op | |||||||
| func (c *FakeNamespaces) UpdateStatus(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (result *v1.Namespace, err error) { | func (c *FakeNamespaces) UpdateStatus(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (result *v1.Namespace, err error) { | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(namespacesResource, "status", namespace, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -125,7 +125,7 @@ func (c *FakeNamespaces) Delete(ctx context.Context, name string, opts metav1.De | |||||||
| func (c *FakeNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Namespace, err error) { | func (c *FakeNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Namespace, err error) { | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(namespacesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(namespacesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -147,7 +147,7 @@ func (c *FakeNamespaces) Apply(ctx context.Context, namespace *corev1.NamespaceA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(namespacesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(namespacesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -170,7 +170,7 @@ func (c *FakeNamespaces) ApplyStatus(ctx context.Context, namespace *corev1.Name | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Namespace{} | 	emptyResult := &v1.Namespace{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(namespacesResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(namespacesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var nodesKind = v1.SchemeGroupVersion.WithKind("Node") | |||||||
| func (c *FakeNodes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Node, err error) { | func (c *FakeNodes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Node, err error) { | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(nodesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(nodesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeNodes) Get(ctx context.Context, name string, options metav1.GetOpti | |||||||
| func (c *FakeNodes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NodeList, err error) { | func (c *FakeNodes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NodeList, err error) { | ||||||
| 	emptyResult := &v1.NodeList{} | 	emptyResult := &v1.NodeList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(nodesResource, nodesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(nodesResource, nodesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeNodes) List(ctx context.Context, opts metav1.ListOptions) (result * | |||||||
| // Watch returns a watch.Interface that watches the requested nodes. | // Watch returns a watch.Interface that watches the requested nodes. | ||||||
| func (c *FakeNodes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeNodes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(nodesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(nodesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a node and creates it.  Returns the server's representation of the node, and an error, if there is any. | // Create takes the representation of a node and creates it.  Returns the server's representation of the node, and an error, if there is any. | ||||||
| func (c *FakeNodes) Create(ctx context.Context, node *v1.Node, opts metav1.CreateOptions) (result *v1.Node, err error) { | func (c *FakeNodes) Create(ctx context.Context, node *v1.Node, opts metav1.CreateOptions) (result *v1.Node, err error) { | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(nodesResource, node), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(nodesResource, node, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeNodes) Create(ctx context.Context, node *v1.Node, opts metav1.Creat | |||||||
| func (c *FakeNodes) Update(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (result *v1.Node, err error) { | func (c *FakeNodes) Update(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (result *v1.Node, err error) { | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(nodesResource, node), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(nodesResource, node, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeNodes) Update(ctx context.Context, node *v1.Node, opts metav1.Updat | |||||||
| func (c *FakeNodes) UpdateStatus(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (result *v1.Node, err error) { | func (c *FakeNodes) UpdateStatus(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (result *v1.Node, err error) { | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(nodesResource, "status", node), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(nodesResource, "status", node, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeNodes) Delete(ctx context.Context, name string, opts metav1.DeleteO | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeNodes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeNodes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(nodesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(nodesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.NodeList{}) | 	_, err := c.Fake.Invokes(action, &v1.NodeList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeNodes) DeleteCollection(ctx context.Context, opts metav1.DeleteOpti | |||||||
| func (c *FakeNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Node, err error) { | func (c *FakeNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Node, err error) { | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(nodesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(nodesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeNodes) Apply(ctx context.Context, node *corev1.NodeApplyConfigurati | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(nodesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(nodesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeNodes) ApplyStatus(ctx context.Context, node *corev1.NodeApplyConfi | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Node{} | 	emptyResult := &v1.Node{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(nodesResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(nodesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var persistentvolumesKind = v1.SchemeGroupVersion.WithKind("PersistentVolume") | |||||||
| func (c *FakePersistentVolumes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PersistentVolume, err error) { | func (c *FakePersistentVolumes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PersistentVolume, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(persistentvolumesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(persistentvolumesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakePersistentVolumes) Get(ctx context.Context, name string, options me | |||||||
| func (c *FakePersistentVolumes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeList, err error) { | func (c *FakePersistentVolumes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeList, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeList{} | 	emptyResult := &v1.PersistentVolumeList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(persistentvolumesResource, persistentvolumesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(persistentvolumesResource, persistentvolumesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakePersistentVolumes) List(ctx context.Context, opts metav1.ListOption | |||||||
| // Watch returns a watch.Interface that watches the requested persistentVolumes. | // Watch returns a watch.Interface that watches the requested persistentVolumes. | ||||||
| func (c *FakePersistentVolumes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakePersistentVolumes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(persistentvolumesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(persistentvolumesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a persistentVolume and creates it.  Returns the server's representation of the persistentVolume, and an error, if there is any. | // Create takes the representation of a persistentVolume and creates it.  Returns the server's representation of the persistentVolume, and an error, if there is any. | ||||||
| func (c *FakePersistentVolumes) Create(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.CreateOptions) (result *v1.PersistentVolume, err error) { | func (c *FakePersistentVolumes) Create(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.CreateOptions) (result *v1.PersistentVolume, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(persistentvolumesResource, persistentVolume), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(persistentvolumesResource, persistentVolume, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakePersistentVolumes) Create(ctx context.Context, persistentVolume *v1 | |||||||
| func (c *FakePersistentVolumes) Update(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.UpdateOptions) (result *v1.PersistentVolume, err error) { | func (c *FakePersistentVolumes) Update(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.UpdateOptions) (result *v1.PersistentVolume, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(persistentvolumesResource, persistentVolume), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(persistentvolumesResource, persistentVolume, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakePersistentVolumes) Update(ctx context.Context, persistentVolume *v1 | |||||||
| func (c *FakePersistentVolumes) UpdateStatus(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.UpdateOptions) (result *v1.PersistentVolume, err error) { | func (c *FakePersistentVolumes) UpdateStatus(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.UpdateOptions) (result *v1.PersistentVolume, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(persistentvolumesResource, "status", persistentVolume), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(persistentvolumesResource, "status", persistentVolume, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakePersistentVolumes) Delete(ctx context.Context, name string, opts me | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePersistentVolumes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakePersistentVolumes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(persistentvolumesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(persistentvolumesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.PersistentVolumeList{}) | 	_, err := c.Fake.Invokes(action, &v1.PersistentVolumeList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakePersistentVolumes) DeleteCollection(ctx context.Context, opts metav | |||||||
| func (c *FakePersistentVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolume, err error) { | func (c *FakePersistentVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolume, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(persistentvolumesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(persistentvolumesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakePersistentVolumes) Apply(ctx context.Context, persistentVolume *cor | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(persistentvolumesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(persistentvolumesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakePersistentVolumes) ApplyStatus(ctx context.Context, persistentVolum | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PersistentVolume{} | 	emptyResult := &v1.PersistentVolume{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(persistentvolumesResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(persistentvolumesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var persistentvolumeclaimsKind = v1.SchemeGroupVersion.WithKind("PersistentVolum | |||||||
| func (c *FakePersistentVolumeClaims) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PersistentVolumeClaim, err error) { | func (c *FakePersistentVolumeClaims) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PersistentVolumeClaim, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(persistentvolumeclaimsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(persistentvolumeclaimsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakePersistentVolumeClaims) Get(ctx context.Context, name string, optio | |||||||
| func (c *FakePersistentVolumeClaims) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { | func (c *FakePersistentVolumeClaims) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeClaimList{} | 	emptyResult := &v1.PersistentVolumeClaimList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(persistentvolumeclaimsResource, persistentvolumeclaimsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(persistentvolumeclaimsResource, persistentvolumeclaimsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakePersistentVolumeClaims) List(ctx context.Context, opts metav1.ListO | |||||||
| // Watch returns a watch.Interface that watches the requested persistentVolumeClaims. | // Watch returns a watch.Interface that watches the requested persistentVolumeClaims. | ||||||
| func (c *FakePersistentVolumeClaims) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakePersistentVolumeClaims) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(persistentvolumeclaimsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(persistentvolumeclaimsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakePersistentVolumeClaims) Watch(ctx context.Context, opts metav1.List | |||||||
| func (c *FakePersistentVolumeClaims) Create(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.CreateOptions) (result *v1.PersistentVolumeClaim, err error) { | func (c *FakePersistentVolumeClaims) Create(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.CreateOptions) (result *v1.PersistentVolumeClaim, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakePersistentVolumeClaims) Create(ctx context.Context, persistentVolum | |||||||
| func (c *FakePersistentVolumeClaims) Update(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (result *v1.PersistentVolumeClaim, err error) { | func (c *FakePersistentVolumeClaims) Update(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (result *v1.PersistentVolumeClaim, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakePersistentVolumeClaims) Update(ctx context.Context, persistentVolum | |||||||
| func (c *FakePersistentVolumeClaims) UpdateStatus(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (result *v1.PersistentVolumeClaim, err error) { | func (c *FakePersistentVolumeClaims) UpdateStatus(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (result *v1.PersistentVolumeClaim, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(persistentvolumeclaimsResource, "status", c.ns, persistentVolumeClaim), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(persistentvolumeclaimsResource, "status", c.ns, persistentVolumeClaim, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakePersistentVolumeClaims) Delete(ctx context.Context, name string, op | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePersistentVolumeClaims) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakePersistentVolumeClaims) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(persistentvolumeclaimsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(persistentvolumeclaimsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.PersistentVolumeClaimList{}) | 	_, err := c.Fake.Invokes(action, &v1.PersistentVolumeClaimList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakePersistentVolumeClaims) DeleteCollection(ctx context.Context, opts | |||||||
| func (c *FakePersistentVolumeClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolumeClaim, err error) { | func (c *FakePersistentVolumeClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolumeClaim, err error) { | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(persistentvolumeclaimsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(persistentvolumeclaimsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakePersistentVolumeClaims) Apply(ctx context.Context, persistentVolume | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(persistentvolumeclaimsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(persistentvolumeclaimsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakePersistentVolumeClaims) ApplyStatus(ctx context.Context, persistent | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PersistentVolumeClaim{} | 	emptyResult := &v1.PersistentVolumeClaim{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(persistentvolumeclaimsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(persistentvolumeclaimsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var podsKind = v1.SchemeGroupVersion.WithKind("Pod") | |||||||
| func (c *FakePods) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Pod, err error) { | func (c *FakePods) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Pod, err error) { | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(podsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(podsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakePods) Get(ctx context.Context, name string, options metav1.GetOptio | |||||||
| func (c *FakePods) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodList, err error) { | func (c *FakePods) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodList, err error) { | ||||||
| 	emptyResult := &v1.PodList{} | 	emptyResult := &v1.PodList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(podsResource, podsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(podsResource, podsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakePods) List(ctx context.Context, opts metav1.ListOptions) (result *v | |||||||
| // Watch returns a watch.Interface that watches the requested pods. | // Watch returns a watch.Interface that watches the requested pods. | ||||||
| func (c *FakePods) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakePods) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(podsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(podsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakePods) Watch(ctx context.Context, opts metav1.ListOptions) (watch.In | |||||||
| func (c *FakePods) Create(ctx context.Context, pod *v1.Pod, opts metav1.CreateOptions) (result *v1.Pod, err error) { | func (c *FakePods) Create(ctx context.Context, pod *v1.Pod, opts metav1.CreateOptions) (result *v1.Pod, err error) { | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(podsResource, c.ns, pod), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(podsResource, c.ns, pod, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakePods) Create(ctx context.Context, pod *v1.Pod, opts metav1.CreateOp | |||||||
| func (c *FakePods) Update(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (result *v1.Pod, err error) { | func (c *FakePods) Update(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (result *v1.Pod, err error) { | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(podsResource, c.ns, pod), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(podsResource, c.ns, pod, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakePods) Update(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOp | |||||||
| func (c *FakePods) UpdateStatus(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (result *v1.Pod, err error) { | func (c *FakePods) UpdateStatus(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (result *v1.Pod, err error) { | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(podsResource, "status", c.ns, pod), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(podsResource, "status", c.ns, pod, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakePods) Delete(ctx context.Context, name string, opts metav1.DeleteOp | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePods) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakePods) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(podsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(podsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.PodList{}) | 	_, err := c.Fake.Invokes(action, &v1.PodList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakePods) DeleteCollection(ctx context.Context, opts metav1.DeleteOptio | |||||||
| func (c *FakePods) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Pod, err error) { | func (c *FakePods) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Pod, err error) { | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(podsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(podsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakePods) Apply(ctx context.Context, pod *corev1.PodApplyConfiguration, | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(podsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(podsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakePods) ApplyStatus(ctx context.Context, pod *corev1.PodApplyConfigur | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(podsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(podsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -200,7 +200,7 @@ func (c *FakePods) ApplyStatus(ctx context.Context, pod *corev1.PodApplyConfigur | |||||||
| func (c *FakePods) UpdateEphemeralContainers(ctx context.Context, podName string, pod *v1.Pod, opts metav1.UpdateOptions) (result *v1.Pod, err error) { | func (c *FakePods) UpdateEphemeralContainers(ctx context.Context, podName string, pod *v1.Pod, opts metav1.UpdateOptions) (result *v1.Pod, err error) { | ||||||
| 	emptyResult := &v1.Pod{} | 	emptyResult := &v1.Pod{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(podsResource, "ephemeralcontainers", c.ns, pod), &v1.Pod{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(podsResource, "ephemeralcontainers", c.ns, pod, opts), &v1.Pod{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var podtemplatesKind = v1.SchemeGroupVersion.WithKind("PodTemplate") | |||||||
| func (c *FakePodTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PodTemplate, err error) { | func (c *FakePodTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PodTemplate, err error) { | ||||||
| 	emptyResult := &v1.PodTemplate{} | 	emptyResult := &v1.PodTemplate{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(podtemplatesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(podtemplatesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakePodTemplates) Get(ctx context.Context, name string, options metav1. | |||||||
| func (c *FakePodTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodTemplateList, err error) { | func (c *FakePodTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodTemplateList, err error) { | ||||||
| 	emptyResult := &v1.PodTemplateList{} | 	emptyResult := &v1.PodTemplateList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(podtemplatesResource, podtemplatesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(podtemplatesResource, podtemplatesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakePodTemplates) List(ctx context.Context, opts metav1.ListOptions) (r | |||||||
| // Watch returns a watch.Interface that watches the requested podTemplates. | // Watch returns a watch.Interface that watches the requested podTemplates. | ||||||
| func (c *FakePodTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakePodTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(podtemplatesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(podtemplatesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakePodTemplates) Watch(ctx context.Context, opts metav1.ListOptions) ( | |||||||
| func (c *FakePodTemplates) Create(ctx context.Context, podTemplate *v1.PodTemplate, opts metav1.CreateOptions) (result *v1.PodTemplate, err error) { | func (c *FakePodTemplates) Create(ctx context.Context, podTemplate *v1.PodTemplate, opts metav1.CreateOptions) (result *v1.PodTemplate, err error) { | ||||||
| 	emptyResult := &v1.PodTemplate{} | 	emptyResult := &v1.PodTemplate{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(podtemplatesResource, c.ns, podTemplate), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(podtemplatesResource, c.ns, podTemplate, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakePodTemplates) Create(ctx context.Context, podTemplate *v1.PodTempla | |||||||
| func (c *FakePodTemplates) Update(ctx context.Context, podTemplate *v1.PodTemplate, opts metav1.UpdateOptions) (result *v1.PodTemplate, err error) { | func (c *FakePodTemplates) Update(ctx context.Context, podTemplate *v1.PodTemplate, opts metav1.UpdateOptions) (result *v1.PodTemplate, err error) { | ||||||
| 	emptyResult := &v1.PodTemplate{} | 	emptyResult := &v1.PodTemplate{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(podtemplatesResource, c.ns, podTemplate), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(podtemplatesResource, c.ns, podTemplate, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakePodTemplates) Delete(ctx context.Context, name string, opts metav1. | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePodTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakePodTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(podtemplatesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(podtemplatesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.PodTemplateList{}) | 	_, err := c.Fake.Invokes(action, &v1.PodTemplateList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakePodTemplates) DeleteCollection(ctx context.Context, opts metav1.Del | |||||||
| func (c *FakePodTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PodTemplate, err error) { | func (c *FakePodTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PodTemplate, err error) { | ||||||
| 	emptyResult := &v1.PodTemplate{} | 	emptyResult := &v1.PodTemplate{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(podtemplatesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(podtemplatesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakePodTemplates) Apply(ctx context.Context, podTemplate *corev1.PodTem | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PodTemplate{} | 	emptyResult := &v1.PodTemplate{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(podtemplatesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(podtemplatesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ var replicationcontrollersKind = v1.SchemeGroupVersion.WithKind("ReplicationCont | |||||||
| func (c *FakeReplicationControllers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ReplicationController, err error) { | func (c *FakeReplicationControllers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ReplicationController, err error) { | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(replicationcontrollersResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(replicationcontrollersResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -59,7 +59,7 @@ func (c *FakeReplicationControllers) Get(ctx context.Context, name string, optio | |||||||
| func (c *FakeReplicationControllers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicationControllerList, err error) { | func (c *FakeReplicationControllers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicationControllerList, err error) { | ||||||
| 	emptyResult := &v1.ReplicationControllerList{} | 	emptyResult := &v1.ReplicationControllerList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(replicationcontrollersResource, replicationcontrollersKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(replicationcontrollersResource, replicationcontrollersKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -81,7 +81,7 @@ func (c *FakeReplicationControllers) List(ctx context.Context, opts metav1.ListO | |||||||
| // Watch returns a watch.Interface that watches the requested replicationControllers. | // Watch returns a watch.Interface that watches the requested replicationControllers. | ||||||
| func (c *FakeReplicationControllers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeReplicationControllers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(replicationcontrollersResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(replicationcontrollersResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -89,7 +89,7 @@ func (c *FakeReplicationControllers) Watch(ctx context.Context, opts metav1.List | |||||||
| func (c *FakeReplicationControllers) Create(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.CreateOptions) (result *v1.ReplicationController, err error) { | func (c *FakeReplicationControllers) Create(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.CreateOptions) (result *v1.ReplicationController, err error) { | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(replicationcontrollersResource, c.ns, replicationController), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(replicationcontrollersResource, c.ns, replicationController, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -101,7 +101,7 @@ func (c *FakeReplicationControllers) Create(ctx context.Context, replicationCont | |||||||
| func (c *FakeReplicationControllers) Update(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.UpdateOptions) (result *v1.ReplicationController, err error) { | func (c *FakeReplicationControllers) Update(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.UpdateOptions) (result *v1.ReplicationController, err error) { | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(replicationcontrollersResource, c.ns, replicationController), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(replicationcontrollersResource, c.ns, replicationController, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -114,7 +114,7 @@ func (c *FakeReplicationControllers) Update(ctx context.Context, replicationCont | |||||||
| func (c *FakeReplicationControllers) UpdateStatus(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.UpdateOptions) (result *v1.ReplicationController, err error) { | func (c *FakeReplicationControllers) UpdateStatus(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.UpdateOptions) (result *v1.ReplicationController, err error) { | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicationcontrollersResource, "status", c.ns, replicationController), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicationcontrollersResource, "status", c.ns, replicationController, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -132,7 +132,7 @@ func (c *FakeReplicationControllers) Delete(ctx context.Context, name string, op | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeReplicationControllers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeReplicationControllers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(replicationcontrollersResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(replicationcontrollersResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ReplicationControllerList{}) | 	_, err := c.Fake.Invokes(action, &v1.ReplicationControllerList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -142,7 +142,7 @@ func (c *FakeReplicationControllers) DeleteCollection(ctx context.Context, opts | |||||||
| func (c *FakeReplicationControllers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ReplicationController, err error) { | func (c *FakeReplicationControllers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ReplicationController, err error) { | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicationcontrollersResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicationcontrollersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -165,7 +165,7 @@ func (c *FakeReplicationControllers) Apply(ctx context.Context, replicationContr | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicationcontrollersResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicationcontrollersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -189,7 +189,7 @@ func (c *FakeReplicationControllers) ApplyStatus(ctx context.Context, replicatio | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ReplicationController{} | 	emptyResult := &v1.ReplicationController{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicationcontrollersResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicationcontrollersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -201,7 +201,7 @@ func (c *FakeReplicationControllers) ApplyStatus(ctx context.Context, replicatio | |||||||
| func (c *FakeReplicationControllers) GetScale(ctx context.Context, replicationControllerName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeReplicationControllers) GetScale(ctx context.Context, replicationControllerName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(replicationcontrollersResource, c.ns, "scale", replicationControllerName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(replicationcontrollersResource, c.ns, "scale", replicationControllerName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -213,7 +213,7 @@ func (c *FakeReplicationControllers) GetScale(ctx context.Context, replicationCo | |||||||
| func (c *FakeReplicationControllers) UpdateScale(ctx context.Context, replicationControllerName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | func (c *FakeReplicationControllers) UpdateScale(ctx context.Context, replicationControllerName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (result *autoscalingv1.Scale, err error) { | ||||||
| 	emptyResult := &autoscalingv1.Scale{} | 	emptyResult := &autoscalingv1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicationcontrollersResource, "scale", c.ns, scale), &autoscalingv1.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicationcontrollersResource, "scale", c.ns, scale, opts), &autoscalingv1.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var resourcequotasKind = v1.SchemeGroupVersion.WithKind("ResourceQuota") | |||||||
| func (c *FakeResourceQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ResourceQuota, err error) { | func (c *FakeResourceQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ResourceQuota, err error) { | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(resourcequotasResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(resourcequotasResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeResourceQuotas) Get(ctx context.Context, name string, options metav | |||||||
| func (c *FakeResourceQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ResourceQuotaList, err error) { | func (c *FakeResourceQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ResourceQuotaList, err error) { | ||||||
| 	emptyResult := &v1.ResourceQuotaList{} | 	emptyResult := &v1.ResourceQuotaList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(resourcequotasResource, resourcequotasKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(resourcequotasResource, resourcequotasKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeResourceQuotas) List(ctx context.Context, opts metav1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested resourceQuotas. | // Watch returns a watch.Interface that watches the requested resourceQuotas. | ||||||
| func (c *FakeResourceQuotas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeResourceQuotas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(resourcequotasResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(resourcequotasResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeResourceQuotas) Watch(ctx context.Context, opts metav1.ListOptions) | |||||||
| func (c *FakeResourceQuotas) Create(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.CreateOptions) (result *v1.ResourceQuota, err error) { | func (c *FakeResourceQuotas) Create(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.CreateOptions) (result *v1.ResourceQuota, err error) { | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(resourcequotasResource, c.ns, resourceQuota), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(resourcequotasResource, c.ns, resourceQuota, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeResourceQuotas) Create(ctx context.Context, resourceQuota *v1.Resou | |||||||
| func (c *FakeResourceQuotas) Update(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.UpdateOptions) (result *v1.ResourceQuota, err error) { | func (c *FakeResourceQuotas) Update(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.UpdateOptions) (result *v1.ResourceQuota, err error) { | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(resourcequotasResource, c.ns, resourceQuota), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(resourcequotasResource, c.ns, resourceQuota, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeResourceQuotas) Update(ctx context.Context, resourceQuota *v1.Resou | |||||||
| func (c *FakeResourceQuotas) UpdateStatus(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.UpdateOptions) (result *v1.ResourceQuota, err error) { | func (c *FakeResourceQuotas) UpdateStatus(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.UpdateOptions) (result *v1.ResourceQuota, err error) { | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(resourcequotasResource, "status", c.ns, resourceQuota), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(resourcequotasResource, "status", c.ns, resourceQuota, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeResourceQuotas) Delete(ctx context.Context, name string, opts metav | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeResourceQuotas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeResourceQuotas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(resourcequotasResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(resourcequotasResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ResourceQuotaList{}) | 	_, err := c.Fake.Invokes(action, &v1.ResourceQuotaList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeResourceQuotas) DeleteCollection(ctx context.Context, opts metav1.D | |||||||
| func (c *FakeResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ResourceQuota, err error) { | func (c *FakeResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ResourceQuota, err error) { | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(resourcequotasResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(resourcequotasResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeResourceQuotas) Apply(ctx context.Context, resourceQuota *corev1.Re | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(resourcequotasResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(resourcequotasResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeResourceQuotas) ApplyStatus(ctx context.Context, resourceQuota *cor | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ResourceQuota{} | 	emptyResult := &v1.ResourceQuota{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(resourcequotasResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(resourcequotasResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var secretsKind = v1.SchemeGroupVersion.WithKind("Secret") | |||||||
| func (c *FakeSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Secret, err error) { | func (c *FakeSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Secret, err error) { | ||||||
| 	emptyResult := &v1.Secret{} | 	emptyResult := &v1.Secret{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(secretsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(secretsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeSecrets) Get(ctx context.Context, name string, options metav1.GetOp | |||||||
| func (c *FakeSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SecretList, err error) { | func (c *FakeSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SecretList, err error) { | ||||||
| 	emptyResult := &v1.SecretList{} | 	emptyResult := &v1.SecretList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(secretsResource, secretsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(secretsResource, secretsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeSecrets) List(ctx context.Context, opts metav1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested secrets. | // Watch returns a watch.Interface that watches the requested secrets. | ||||||
| func (c *FakeSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(secretsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(secretsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch | |||||||
| func (c *FakeSecrets) Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (result *v1.Secret, err error) { | func (c *FakeSecrets) Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (result *v1.Secret, err error) { | ||||||
| 	emptyResult := &v1.Secret{} | 	emptyResult := &v1.Secret{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(secretsResource, c.ns, secret, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeSecrets) Create(ctx context.Context, secret *v1.Secret, opts metav1 | |||||||
| func (c *FakeSecrets) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (result *v1.Secret, err error) { | func (c *FakeSecrets) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (result *v1.Secret, err error) { | ||||||
| 	emptyResult := &v1.Secret{} | 	emptyResult := &v1.Secret{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(secretsResource, c.ns, secret, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeSecrets) Delete(ctx context.Context, name string, opts metav1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(secretsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.SecretList{}) | 	_, err := c.Fake.Invokes(action, &v1.SecretList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOp | |||||||
| func (c *FakeSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Secret, err error) { | func (c *FakeSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Secret, err error) { | ||||||
| 	emptyResult := &v1.Secret{} | 	emptyResult := &v1.Secret{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(secretsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(secretsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeSecrets) Apply(ctx context.Context, secret *corev1.SecretApplyConfi | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Secret{} | 	emptyResult := &v1.Secret{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(secretsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(secretsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var servicesKind = v1.SchemeGroupVersion.WithKind("Service") | |||||||
| func (c *FakeServices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Service, err error) { | func (c *FakeServices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Service, err error) { | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(servicesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(servicesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeServices) Get(ctx context.Context, name string, options metav1.GetO | |||||||
| func (c *FakeServices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceList, err error) { | func (c *FakeServices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceList, err error) { | ||||||
| 	emptyResult := &v1.ServiceList{} | 	emptyResult := &v1.ServiceList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(servicesResource, servicesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(servicesResource, servicesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeServices) List(ctx context.Context, opts metav1.ListOptions) (resul | |||||||
| // Watch returns a watch.Interface that watches the requested services. | // Watch returns a watch.Interface that watches the requested services. | ||||||
| func (c *FakeServices) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeServices) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(servicesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(servicesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeServices) Watch(ctx context.Context, opts metav1.ListOptions) (watc | |||||||
| func (c *FakeServices) Create(ctx context.Context, service *v1.Service, opts metav1.CreateOptions) (result *v1.Service, err error) { | func (c *FakeServices) Create(ctx context.Context, service *v1.Service, opts metav1.CreateOptions) (result *v1.Service, err error) { | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(servicesResource, c.ns, service, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeServices) Create(ctx context.Context, service *v1.Service, opts met | |||||||
| func (c *FakeServices) Update(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (result *v1.Service, err error) { | func (c *FakeServices) Update(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (result *v1.Service, err error) { | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(servicesResource, c.ns, service, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeServices) Update(ctx context.Context, service *v1.Service, opts met | |||||||
| func (c *FakeServices) UpdateStatus(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (result *v1.Service, err error) { | func (c *FakeServices) UpdateStatus(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (result *v1.Service, err error) { | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(servicesResource, "status", c.ns, service, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeServices) Delete(ctx context.Context, name string, opts metav1.Dele | |||||||
| func (c *FakeServices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Service, err error) { | func (c *FakeServices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Service, err error) { | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(servicesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(servicesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -156,7 +156,7 @@ func (c *FakeServices) Apply(ctx context.Context, service *corev1.ServiceApplyCo | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(servicesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(servicesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -180,7 +180,7 @@ func (c *FakeServices) ApplyStatus(ctx context.Context, service *corev1.ServiceA | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Service{} | 	emptyResult := &v1.Service{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(servicesResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(servicesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ var serviceaccountsKind = v1.SchemeGroupVersion.WithKind("ServiceAccount") | |||||||
| func (c *FakeServiceAccounts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceAccount, err error) { | func (c *FakeServiceAccounts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceAccount, err error) { | ||||||
| 	emptyResult := &v1.ServiceAccount{} | 	emptyResult := &v1.ServiceAccount{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(serviceaccountsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(serviceaccountsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -59,7 +59,7 @@ func (c *FakeServiceAccounts) Get(ctx context.Context, name string, options meta | |||||||
| func (c *FakeServiceAccounts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceAccountList, err error) { | func (c *FakeServiceAccounts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceAccountList, err error) { | ||||||
| 	emptyResult := &v1.ServiceAccountList{} | 	emptyResult := &v1.ServiceAccountList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(serviceaccountsResource, serviceaccountsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(serviceaccountsResource, serviceaccountsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -81,7 +81,7 @@ func (c *FakeServiceAccounts) List(ctx context.Context, opts metav1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested serviceAccounts. | // Watch returns a watch.Interface that watches the requested serviceAccounts. | ||||||
| func (c *FakeServiceAccounts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeServiceAccounts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(serviceaccountsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(serviceaccountsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -89,7 +89,7 @@ func (c *FakeServiceAccounts) Watch(ctx context.Context, opts metav1.ListOptions | |||||||
| func (c *FakeServiceAccounts) Create(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.CreateOptions) (result *v1.ServiceAccount, err error) { | func (c *FakeServiceAccounts) Create(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.CreateOptions) (result *v1.ServiceAccount, err error) { | ||||||
| 	emptyResult := &v1.ServiceAccount{} | 	emptyResult := &v1.ServiceAccount{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(serviceaccountsResource, c.ns, serviceAccount), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(serviceaccountsResource, c.ns, serviceAccount, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -101,7 +101,7 @@ func (c *FakeServiceAccounts) Create(ctx context.Context, serviceAccount *v1.Ser | |||||||
| func (c *FakeServiceAccounts) Update(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.UpdateOptions) (result *v1.ServiceAccount, err error) { | func (c *FakeServiceAccounts) Update(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.UpdateOptions) (result *v1.ServiceAccount, err error) { | ||||||
| 	emptyResult := &v1.ServiceAccount{} | 	emptyResult := &v1.ServiceAccount{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(serviceaccountsResource, c.ns, serviceAccount), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(serviceaccountsResource, c.ns, serviceAccount, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -119,7 +119,7 @@ func (c *FakeServiceAccounts) Delete(ctx context.Context, name string, opts meta | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeServiceAccounts) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeServiceAccounts) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(serviceaccountsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(serviceaccountsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.ServiceAccountList{}) | 	_, err := c.Fake.Invokes(action, &v1.ServiceAccountList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -129,7 +129,7 @@ func (c *FakeServiceAccounts) DeleteCollection(ctx context.Context, opts metav1. | |||||||
| func (c *FakeServiceAccounts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceAccount, err error) { | func (c *FakeServiceAccounts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceAccount, err error) { | ||||||
| 	emptyResult := &v1.ServiceAccount{} | 	emptyResult := &v1.ServiceAccount{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(serviceaccountsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(serviceaccountsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -152,7 +152,7 @@ func (c *FakeServiceAccounts) Apply(ctx context.Context, serviceAccount *corev1. | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.ServiceAccount{} | 	emptyResult := &v1.ServiceAccount{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(serviceaccountsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(serviceaccountsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeServiceAccounts) Apply(ctx context.Context, serviceAccount *corev1. | |||||||
| func (c *FakeServiceAccounts) CreateToken(ctx context.Context, serviceAccountName string, tokenRequest *authenticationv1.TokenRequest, opts metav1.CreateOptions) (result *authenticationv1.TokenRequest, err error) { | func (c *FakeServiceAccounts) CreateToken(ctx context.Context, serviceAccountName string, tokenRequest *authenticationv1.TokenRequest, opts metav1.CreateOptions) (result *authenticationv1.TokenRequest, err error) { | ||||||
| 	emptyResult := &authenticationv1.TokenRequest{} | 	emptyResult := &authenticationv1.TokenRequest{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateSubresourceAction(serviceaccountsResource, serviceAccountName, "token", c.ns, tokenRequest), emptyResult) | 		Invokes(testing.NewCreateSubresourceActionWithOptions(serviceaccountsResource, serviceAccountName, "token", c.ns, tokenRequest, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var endpointslicesKind = v1.SchemeGroupVersion.WithKind("EndpointSlice") | |||||||
| func (c *FakeEndpointSlices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1.EndpointSlice{} | 	emptyResult := &v1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(endpointslicesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(endpointslicesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeEndpointSlices) Get(ctx context.Context, name string, options metav | |||||||
| func (c *FakeEndpointSlices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointSliceList, err error) { | func (c *FakeEndpointSlices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointSliceList, err error) { | ||||||
| 	emptyResult := &v1.EndpointSliceList{} | 	emptyResult := &v1.EndpointSliceList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(endpointslicesResource, endpointslicesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(endpointslicesResource, endpointslicesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeEndpointSlices) List(ctx context.Context, opts metav1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested endpointSlices. | // Watch returns a watch.Interface that watches the requested endpointSlices. | ||||||
| func (c *FakeEndpointSlices) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeEndpointSlices) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(endpointslicesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(endpointslicesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeEndpointSlices) Watch(ctx context.Context, opts metav1.ListOptions) | |||||||
| func (c *FakeEndpointSlices) Create(ctx context.Context, endpointSlice *v1.EndpointSlice, opts metav1.CreateOptions) (result *v1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Create(ctx context.Context, endpointSlice *v1.EndpointSlice, opts metav1.CreateOptions) (result *v1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1.EndpointSlice{} | 	emptyResult := &v1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(endpointslicesResource, c.ns, endpointSlice), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(endpointslicesResource, c.ns, endpointSlice, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeEndpointSlices) Create(ctx context.Context, endpointSlice *v1.Endpo | |||||||
| func (c *FakeEndpointSlices) Update(ctx context.Context, endpointSlice *v1.EndpointSlice, opts metav1.UpdateOptions) (result *v1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Update(ctx context.Context, endpointSlice *v1.EndpointSlice, opts metav1.UpdateOptions) (result *v1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1.EndpointSlice{} | 	emptyResult := &v1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(endpointslicesResource, c.ns, endpointSlice), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(endpointslicesResource, c.ns, endpointSlice, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeEndpointSlices) Delete(ctx context.Context, name string, opts metav | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeEndpointSlices) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeEndpointSlices) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(endpointslicesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(endpointslicesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.EndpointSliceList{}) | 	_, err := c.Fake.Invokes(action, &v1.EndpointSliceList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeEndpointSlices) DeleteCollection(ctx context.Context, opts metav1.D | |||||||
| func (c *FakeEndpointSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1.EndpointSlice{} | 	emptyResult := &v1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(endpointslicesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(endpointslicesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeEndpointSlices) Apply(ctx context.Context, endpointSlice *discovery | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.EndpointSlice{} | 	emptyResult := &v1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(endpointslicesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(endpointslicesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var endpointslicesKind = v1beta1.SchemeGroupVersion.WithKind("EndpointSlice") | |||||||
| func (c *FakeEndpointSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1beta1.EndpointSlice{} | 	emptyResult := &v1beta1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(endpointslicesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(endpointslicesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeEndpointSlices) Get(ctx context.Context, name string, options v1.Ge | |||||||
| func (c *FakeEndpointSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EndpointSliceList, err error) { | func (c *FakeEndpointSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EndpointSliceList, err error) { | ||||||
| 	emptyResult := &v1beta1.EndpointSliceList{} | 	emptyResult := &v1beta1.EndpointSliceList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(endpointslicesResource, endpointslicesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(endpointslicesResource, endpointslicesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeEndpointSlices) List(ctx context.Context, opts v1.ListOptions) (res | |||||||
| // Watch returns a watch.Interface that watches the requested endpointSlices. | // Watch returns a watch.Interface that watches the requested endpointSlices. | ||||||
| func (c *FakeEndpointSlices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeEndpointSlices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(endpointslicesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(endpointslicesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeEndpointSlices) Watch(ctx context.Context, opts v1.ListOptions) (wa | |||||||
| func (c *FakeEndpointSlices) Create(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.CreateOptions) (result *v1beta1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Create(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.CreateOptions) (result *v1beta1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1beta1.EndpointSlice{} | 	emptyResult := &v1beta1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(endpointslicesResource, c.ns, endpointSlice), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(endpointslicesResource, c.ns, endpointSlice, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeEndpointSlices) Create(ctx context.Context, endpointSlice *v1beta1. | |||||||
| func (c *FakeEndpointSlices) Update(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.UpdateOptions) (result *v1beta1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Update(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.UpdateOptions) (result *v1beta1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1beta1.EndpointSlice{} | 	emptyResult := &v1beta1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(endpointslicesResource, c.ns, endpointSlice), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(endpointslicesResource, c.ns, endpointSlice, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeEndpointSlices) Delete(ctx context.Context, name string, opts v1.De | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeEndpointSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeEndpointSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(endpointslicesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(endpointslicesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.EndpointSliceList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.EndpointSliceList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeEndpointSlices) DeleteCollection(ctx context.Context, opts v1.Delet | |||||||
| func (c *FakeEndpointSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.EndpointSlice, err error) { | func (c *FakeEndpointSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.EndpointSlice, err error) { | ||||||
| 	emptyResult := &v1beta1.EndpointSlice{} | 	emptyResult := &v1beta1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(endpointslicesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(endpointslicesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeEndpointSlices) Apply(ctx context.Context, endpointSlice *discovery | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.EndpointSlice{} | 	emptyResult := &v1beta1.EndpointSlice{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(endpointslicesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(endpointslicesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var eventsKind = v1.SchemeGroupVersion.WithKind("Event") | |||||||
| func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error) { | func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(eventsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOpt | |||||||
| func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | ||||||
| 	emptyResult := &v1.EventList{} | 	emptyResult := &v1.EventList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(eventsResource, eventsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested events. | // Watch returns a watch.Interface that watches the requested events. | ||||||
| func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(eventsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(eventsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch. | |||||||
| func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error) { | func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(eventsResource, c.ns, event, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.Cr | |||||||
| func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { | func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(eventsResource, c.ns, event, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeEvents) Delete(ctx context.Context, name string, opts metav1.Delete | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(eventsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.EventList{}) | 	_, err := c.Fake.Invokes(action, &v1.EventList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOpt | |||||||
| func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) { | func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) { | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(eventsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeEvents) Apply(ctx context.Context, event *eventsv1.EventApplyConfig | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Event{} | 	emptyResult := &v1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(eventsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var eventsKind = v1beta1.SchemeGroupVersion.WithKind("Event") | |||||||
| func (c *FakeEvents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Event, err error) { | func (c *FakeEvents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Event, err error) { | ||||||
| 	emptyResult := &v1beta1.Event{} | 	emptyResult := &v1beta1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(eventsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeEvents) Get(ctx context.Context, name string, options v1.GetOptions | |||||||
| func (c *FakeEvents) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EventList, err error) { | func (c *FakeEvents) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EventList, err error) { | ||||||
| 	emptyResult := &v1beta1.EventList{} | 	emptyResult := &v1beta1.EventList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(eventsResource, eventsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeEvents) List(ctx context.Context, opts v1.ListOptions) (result *v1b | |||||||
| // Watch returns a watch.Interface that watches the requested events. | // Watch returns a watch.Interface that watches the requested events. | ||||||
| func (c *FakeEvents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeEvents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(eventsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(eventsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeEvents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inte | |||||||
| func (c *FakeEvents) Create(ctx context.Context, event *v1beta1.Event, opts v1.CreateOptions) (result *v1beta1.Event, err error) { | func (c *FakeEvents) Create(ctx context.Context, event *v1beta1.Event, opts v1.CreateOptions) (result *v1beta1.Event, err error) { | ||||||
| 	emptyResult := &v1beta1.Event{} | 	emptyResult := &v1beta1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(eventsResource, c.ns, event, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeEvents) Create(ctx context.Context, event *v1beta1.Event, opts v1.C | |||||||
| func (c *FakeEvents) Update(ctx context.Context, event *v1beta1.Event, opts v1.UpdateOptions) (result *v1beta1.Event, err error) { | func (c *FakeEvents) Update(ctx context.Context, event *v1beta1.Event, opts v1.UpdateOptions) (result *v1beta1.Event, err error) { | ||||||
| 	emptyResult := &v1beta1.Event{} | 	emptyResult := &v1beta1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(eventsResource, c.ns, event, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeEvents) Delete(ctx context.Context, name string, opts v1.DeleteOpti | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeEvents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeEvents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(eventsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.EventList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.EventList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeEvents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions | |||||||
| func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Event, err error) { | func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Event, err error) { | ||||||
| 	emptyResult := &v1beta1.Event{} | 	emptyResult := &v1beta1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(eventsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeEvents) Apply(ctx context.Context, event *eventsv1beta1.EventApplyC | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Event{} | 	emptyResult := &v1beta1.Event{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(eventsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var daemonsetsKind = v1beta1.SchemeGroupVersion.WithKind("DaemonSet") | |||||||
| func (c *FakeDaemonSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DaemonSet, err error) { | func (c *FakeDaemonSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(daemonsetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeDaemonSets) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
| func (c *FakeDaemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | func (c *FakeDaemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | ||||||
| 	emptyResult := &v1beta1.DaemonSetList{} | 	emptyResult := &v1beta1.DaemonSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(daemonsetsResource, daemonsetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeDaemonSets) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | // Watch returns a watch.Interface that watches the requested daemonSets. | ||||||
| func (c *FakeDaemonSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeDaemonSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(daemonsetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(daemonsetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeDaemonSets) Watch(ctx context.Context, opts v1.ListOptions) (watch. | |||||||
| func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1beta1.DaemonSet, opts v1.CreateOptions) (result *v1beta1.DaemonSet, err error) { | func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1beta1.DaemonSet, opts v1.CreateOptions) (result *v1beta1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(daemonsetsResource, c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *v1beta1.DaemonSe | |||||||
| func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1beta1.DaemonSet, opts v1.UpdateOptions) (result *v1beta1.DaemonSet, err error) { | func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1beta1.DaemonSet, opts v1.UpdateOptions) (result *v1beta1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(daemonsetsResource, c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeDaemonSets) Update(ctx context.Context, daemonSet *v1beta1.DaemonSe | |||||||
| func (c *FakeDaemonSets) UpdateStatus(ctx context.Context, daemonSet *v1beta1.DaemonSet, opts v1.UpdateOptions) (result *v1beta1.DaemonSet, err error) { | func (c *FakeDaemonSets) UpdateStatus(ctx context.Context, daemonSet *v1beta1.DaemonSet, opts v1.UpdateOptions) (result *v1beta1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(daemonsetsResource, "status", c.ns, daemonSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeDaemonSets) Delete(ctx context.Context, name string, opts v1.Delete | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(daemonsetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DaemonSetList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.DaemonSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeDaemonSets) DeleteCollection(ctx context.Context, opts v1.DeleteOpt | |||||||
| func (c *FakeDaemonSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.DaemonSet, err error) { | func (c *FakeDaemonSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.DaemonSet, err error) { | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeDaemonSets) Apply(ctx context.Context, daemonSet *extensionsv1beta1 | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeDaemonSets) ApplyStatus(ctx context.Context, daemonSet *extensionsv | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.DaemonSet{} | 	emptyResult := &v1beta1.DaemonSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(daemonsetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var deploymentsKind = v1beta1.SchemeGroupVersion.WithKind("Deployment") | |||||||
| func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(deploymentsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeDeployments) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||||
| 	emptyResult := &v1beta1.DeploymentList{} | 	emptyResult := &v1beta1.DeploymentList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(deploymentsResource, deploymentsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeDeployments) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested deployments. | // Watch returns a watch.Interface that watches the requested deployments. | ||||||
| func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(deploymentsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(deploymentsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch | |||||||
| func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta1.Deployment, opts v1.CreateOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta1.Deployment, opts v1.CreateOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeDeployments) Create(ctx context.Context, deployment *v1beta1.Deploy | |||||||
| func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(deploymentsResource, c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeDeployments) Update(ctx context.Context, deployment *v1beta1.Deploy | |||||||
| func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1beta1.Deployment, opts v1.UpdateOptions) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentsResource, "status", c.ns, deployment, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeDeployments) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(deploymentsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Deployment, err error) { | func (c *FakeDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Deployment, err error) { | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeDeployments) Apply(ctx context.Context, deployment *extensionsv1bet | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeDeployments) ApplyStatus(ctx context.Context, deployment *extension | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Deployment{} | 	emptyResult := &v1beta1.Deployment{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -200,7 +200,7 @@ func (c *FakeDeployments) ApplyStatus(ctx context.Context, deployment *extension | |||||||
| func (c *FakeDeployments) GetScale(ctx context.Context, deploymentName string, options v1.GetOptions) (result *v1beta1.Scale, err error) { | func (c *FakeDeployments) GetScale(ctx context.Context, deploymentName string, options v1.GetOptions) (result *v1beta1.Scale, err error) { | ||||||
| 	emptyResult := &v1beta1.Scale{} | 	emptyResult := &v1beta1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(deploymentsResource, c.ns, "scale", deploymentName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(deploymentsResource, c.ns, "scale", deploymentName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -212,7 +212,7 @@ func (c *FakeDeployments) GetScale(ctx context.Context, deploymentName string, o | |||||||
| func (c *FakeDeployments) UpdateScale(ctx context.Context, deploymentName string, scale *v1beta1.Scale, opts v1.UpdateOptions) (result *v1beta1.Scale, err error) { | func (c *FakeDeployments) UpdateScale(ctx context.Context, deploymentName string, scale *v1beta1.Scale, opts v1.UpdateOptions) (result *v1beta1.Scale, err error) { | ||||||
| 	emptyResult := &v1beta1.Scale{} | 	emptyResult := &v1beta1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "scale", c.ns, scale), &v1beta1.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentsResource, "scale", c.ns, scale, opts), &v1beta1.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -232,7 +232,7 @@ func (c *FakeDeployments) ApplyScale(ctx context.Context, deploymentName string, | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Scale{} | 	emptyResult := &v1beta1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, deploymentName, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentsResource, c.ns, deploymentName, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var ingressesKind = v1beta1.SchemeGroupVersion.WithKind("Ingress") | |||||||
| func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(ingressesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(ingressesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOpti | |||||||
| func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressList{} | 	emptyResult := &v1beta1.IngressList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(ingressesResource, ingressesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(ingressesResource, ingressesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result * | |||||||
| // Watch returns a watch.Interface that watches the requested ingresses. | // Watch returns a watch.Interface that watches the requested ingresses. | ||||||
| func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(ingressesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(ingressesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.I | |||||||
| func (c *FakeIngresses) Create(ctx context.Context, ingress *v1beta1.Ingress, opts v1.CreateOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Create(ctx context.Context, ingress *v1beta1.Ingress, opts v1.CreateOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(ingressesResource, c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeIngresses) Create(ctx context.Context, ingress *v1beta1.Ingress, op | |||||||
| func (c *FakeIngresses) Update(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Update(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(ingressesResource, c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeIngresses) Update(ctx context.Context, ingress *v1beta1.Ingress, op | |||||||
| func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(ingressesResource, "status", c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeIngresses) Delete(ctx context.Context, name string, opts v1.DeleteO | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(ingressesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOpti | |||||||
| func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeIngresses) Apply(ctx context.Context, ingress *extensionsv1beta1.In | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeIngresses) ApplyStatus(ctx context.Context, ingress *extensionsv1be | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var networkpoliciesKind = v1beta1.SchemeGroupVersion.WithKind("NetworkPolicy") | |||||||
| func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.NetworkPolicy{} | 	emptyResult := &v1beta1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(networkpoliciesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(networkpoliciesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.G | |||||||
| func (c *FakeNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.NetworkPolicyList, err error) { | func (c *FakeNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.NetworkPolicyList, err error) { | ||||||
| 	emptyResult := &v1beta1.NetworkPolicyList{} | 	emptyResult := &v1beta1.NetworkPolicyList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(networkpoliciesResource, networkpoliciesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(networkpoliciesResource, networkpoliciesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (re | |||||||
| // Watch returns a watch.Interface that watches the requested networkPolicies. | // Watch returns a watch.Interface that watches the requested networkPolicies. | ||||||
| func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(networkpoliciesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(networkpoliciesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (w | |||||||
| func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.CreateOptions) (result *v1beta1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.CreateOptions) (result *v1beta1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.NetworkPolicy{} | 	emptyResult := &v1beta1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(networkpoliciesResource, c.ns, networkPolicy), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(networkpoliciesResource, c.ns, networkPolicy, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1beta1 | |||||||
| func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.UpdateOptions) (result *v1beta1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1beta1.NetworkPolicy, opts v1.UpdateOptions) (result *v1beta1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.NetworkPolicy{} | 	emptyResult := &v1beta1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(networkpoliciesResource, c.ns, networkPolicy), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(networkpoliciesResource, c.ns, networkPolicy, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeNetworkPolicies) Delete(ctx context.Context, name string, opts v1.D | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(networkpoliciesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(networkpoliciesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.NetworkPolicyList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.NetworkPolicyList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.Dele | |||||||
| func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1beta1.NetworkPolicy{} | 	emptyResult := &v1beta1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(networkpoliciesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(networkpoliciesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeNetworkPolicies) Apply(ctx context.Context, networkPolicy *extensio | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.NetworkPolicy{} | 	emptyResult := &v1beta1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(networkpoliciesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(networkpoliciesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var replicasetsKind = v1beta1.SchemeGroupVersion.WithKind("ReplicaSet") | |||||||
| func (c *FakeReplicaSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(replicasetsResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(replicasetsResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeReplicaSets) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeReplicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | func (c *FakeReplicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | ||||||
| 	emptyResult := &v1beta1.ReplicaSetList{} | 	emptyResult := &v1beta1.ReplicaSetList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(replicasetsResource, replicasetsKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(replicasetsResource, replicasetsKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeReplicaSets) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | // Watch returns a watch.Interface that watches the requested replicaSets. | ||||||
| func (c *FakeReplicaSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeReplicaSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(replicasetsResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(replicasetsResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeReplicaSets) Watch(ctx context.Context, opts v1.ListOptions) (watch | |||||||
| func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1beta1.ReplicaSet, opts v1.CreateOptions) (result *v1beta1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1beta1.ReplicaSet, opts v1.CreateOptions) (result *v1beta1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(replicasetsResource, c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeReplicaSets) Create(ctx context.Context, replicaSet *v1beta1.Replic | |||||||
| func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1beta1.ReplicaSet, opts v1.UpdateOptions) (result *v1beta1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1beta1.ReplicaSet, opts v1.UpdateOptions) (result *v1beta1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(replicasetsResource, c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeReplicaSets) Update(ctx context.Context, replicaSet *v1beta1.Replic | |||||||
| func (c *FakeReplicaSets) UpdateStatus(ctx context.Context, replicaSet *v1beta1.ReplicaSet, opts v1.UpdateOptions) (result *v1beta1.ReplicaSet, err error) { | func (c *FakeReplicaSets) UpdateStatus(ctx context.Context, replicaSet *v1beta1.ReplicaSet, opts v1.UpdateOptions) (result *v1beta1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicasetsResource, "status", c.ns, replicaSet, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeReplicaSets) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(replicasetsResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ReplicaSetList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.ReplicaSetList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeReplicaSets) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeReplicaSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ReplicaSet, err error) { | func (c *FakeReplicaSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ReplicaSet, err error) { | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeReplicaSets) Apply(ctx context.Context, replicaSet *extensionsv1bet | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeReplicaSets) ApplyStatus(ctx context.Context, replicaSet *extension | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.ReplicaSet{} | 	emptyResult := &v1beta1.ReplicaSet{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -200,7 +200,7 @@ func (c *FakeReplicaSets) ApplyStatus(ctx context.Context, replicaSet *extension | |||||||
| func (c *FakeReplicaSets) GetScale(ctx context.Context, replicaSetName string, options v1.GetOptions) (result *v1beta1.Scale, err error) { | func (c *FakeReplicaSets) GetScale(ctx context.Context, replicaSetName string, options v1.GetOptions) (result *v1beta1.Scale, err error) { | ||||||
| 	emptyResult := &v1beta1.Scale{} | 	emptyResult := &v1beta1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetSubresourceAction(replicasetsResource, c.ns, "scale", replicaSetName), emptyResult) | 		Invokes(testing.NewGetSubresourceActionWithOptions(replicasetsResource, c.ns, "scale", replicaSetName, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -212,7 +212,7 @@ func (c *FakeReplicaSets) GetScale(ctx context.Context, replicaSetName string, o | |||||||
| func (c *FakeReplicaSets) UpdateScale(ctx context.Context, replicaSetName string, scale *v1beta1.Scale, opts v1.UpdateOptions) (result *v1beta1.Scale, err error) { | func (c *FakeReplicaSets) UpdateScale(ctx context.Context, replicaSetName string, scale *v1beta1.Scale, opts v1.UpdateOptions) (result *v1beta1.Scale, err error) { | ||||||
| 	emptyResult := &v1beta1.Scale{} | 	emptyResult := &v1beta1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "scale", c.ns, scale), &v1beta1.Scale{}) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(replicasetsResource, "scale", c.ns, scale, opts), &v1beta1.Scale{}) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -232,7 +232,7 @@ func (c *FakeReplicaSets) ApplyScale(ctx context.Context, replicaSetName string, | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Scale{} | 	emptyResult := &v1beta1.Scale{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, replicaSetName, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(replicasetsResource, c.ns, replicaSetName, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var flowschemasKind = v1.SchemeGroupVersion.WithKind("FlowSchema") | |||||||
| func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(flowschemasResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(flowschemasResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options metav1.G | |||||||
| func (c *FakeFlowSchemas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FlowSchemaList, err error) { | func (c *FakeFlowSchemas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FlowSchemaList, err error) { | ||||||
| 	emptyResult := &v1.FlowSchemaList{} | 	emptyResult := &v1.FlowSchemaList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(flowschemasResource, flowschemasKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(flowschemasResource, flowschemasKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeFlowSchemas) List(ctx context.Context, opts metav1.ListOptions) (re | |||||||
| // Watch returns a watch.Interface that watches the requested flowSchemas. | // Watch returns a watch.Interface that watches the requested flowSchemas. | ||||||
| func (c *FakeFlowSchemas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeFlowSchemas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(flowschemasResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(flowschemasResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | ||||||
| func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1.FlowSchema, opts metav1.CreateOptions) (result *v1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1.FlowSchema, opts metav1.CreateOptions) (result *v1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1.FlowSchema, | |||||||
| func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1.FlowSchema, opts metav1.UpdateOptions) (result *v1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1.FlowSchema, opts metav1.UpdateOptions) (result *v1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1.FlowSchema, | |||||||
| func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1.FlowSchema, opts metav1.UpdateOptions) (result *v1.FlowSchema, err error) { | func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1.FlowSchema, opts metav1.UpdateOptions) (result *v1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(flowschemasResource, "status", flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(flowschemasResource, "status", flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeFlowSchemas) Delete(ctx context.Context, name string, opts metav1.D | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(flowschemasResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(flowschemasResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.FlowSchemaList{}) | 	_, err := c.Fake.Invokes(action, &v1.FlowSchemaList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts metav1.Dele | |||||||
| func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeFlowSchemas) Apply(ctx context.Context, flowSchema *flowcontrolv1.F | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeFlowSchemas) ApplyStatus(ctx context.Context, flowSchema *flowcontr | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.FlowSchema{} | 	emptyResult := &v1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var prioritylevelconfigurationsKind = v1.SchemeGroupVersion.WithKind("PriorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(prioritylevelconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(prioritylevelconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, | |||||||
| func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PriorityLevelConfigurationList, err error) { | func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PriorityLevelConfigurationList, err error) { | ||||||
| 	emptyResult := &v1.PriorityLevelConfigurationList{} | 	emptyResult := &v1.PriorityLevelConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts metav1. | |||||||
| // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | ||||||
| func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(prioritylevelconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(prioritylevelconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | ||||||
| func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1.PriorityLevelConfiguration, opts metav1.CreateOptions) (result *v1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1.PriorityLevelConfiguration, opts metav1.CreateOptions) (result *v1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1.PriorityLevelConfiguration, opts metav1.UpdateOptions) (result *v1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1.PriorityLevelConfiguration, opts metav1.UpdateOptions) (result *v1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1.PriorityLevelConfiguration, opts metav1.UpdateOptions) (result *v1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1.PriorityLevelConfiguration, opts metav1.UpdateOptions) (result *v1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakePriorityLevelConfigurations) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(prioritylevelconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(prioritylevelconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.PriorityLevelConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1.PriorityLevelConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakePriorityLevelConfigurations) Apply(ctx context.Context, priorityLev | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakePriorityLevelConfigurations) ApplyStatus(ctx context.Context, prior | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.PriorityLevelConfiguration{} | 	emptyResult := &v1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var flowschemasKind = v1beta1.SchemeGroupVersion.WithKind("FlowSchema") | |||||||
| func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(flowschemasResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(flowschemasResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FlowSchemaList, err error) { | func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FlowSchemaList, err error) { | ||||||
| 	emptyResult := &v1beta1.FlowSchemaList{} | 	emptyResult := &v1beta1.FlowSchemaList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(flowschemasResource, flowschemasKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(flowschemasResource, flowschemasKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested flowSchemas. | // Watch returns a watch.Interface that watches the requested flowSchemas. | ||||||
| func (c *FakeFlowSchemas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeFlowSchemas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(flowschemasResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(flowschemasResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | ||||||
| func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta1.FlowSchema, opts v1.CreateOptions) (result *v1beta1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta1.FlowSchema, opts v1.CreateOptions) (result *v1beta1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta1.FlowSc | |||||||
| func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta1.FlowSchema, opts v1.UpdateOptions) (result *v1beta1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta1.FlowSchema, opts v1.UpdateOptions) (result *v1beta1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta1.FlowSc | |||||||
| func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1beta1.FlowSchema, opts v1.UpdateOptions) (result *v1beta1.FlowSchema, err error) { | func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1beta1.FlowSchema, opts v1.UpdateOptions) (result *v1beta1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(flowschemasResource, "status", flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(flowschemasResource, "status", flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeFlowSchemas) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(flowschemasResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(flowschemasResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.FlowSchemaList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.FlowSchemaList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.FlowSchema, err error) { | func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeFlowSchemas) Apply(ctx context.Context, flowSchema *flowcontrolv1be | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeFlowSchemas) ApplyStatus(ctx context.Context, flowSchema *flowcontr | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.FlowSchema{} | 	emptyResult := &v1beta1.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var prioritylevelconfigurationsKind = v1beta1.SchemeGroupVersion.WithKind("Prior | |||||||
| func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(prioritylevelconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(prioritylevelconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, | |||||||
| func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityLevelConfigurationList, err error) { | func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityLevelConfigurationList, err error) { | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfigurationList{} | 	emptyResult := &v1beta1.PriorityLevelConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.List | |||||||
| // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | ||||||
| func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(prioritylevelconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(prioritylevelconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | ||||||
| func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1beta1.PriorityLevelConfiguration, opts v1.CreateOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1beta1.PriorityLevelConfiguration, opts v1.CreateOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1beta1.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1beta1.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1beta1.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1beta1.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakePriorityLevelConfigurations) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(prioritylevelconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(prioritylevelconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.PriorityLevelConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.PriorityLevelConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakePriorityLevelConfigurations) Apply(ctx context.Context, priorityLev | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakePriorityLevelConfigurations) ApplyStatus(ctx context.Context, prior | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | 	emptyResult := &v1beta1.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var flowschemasKind = v1beta2.SchemeGroupVersion.WithKind("FlowSchema") | |||||||
| func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.FlowSchema, err error) { | func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(flowschemasResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(flowschemasResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.FlowSchemaList, err error) { | func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.FlowSchemaList, err error) { | ||||||
| 	emptyResult := &v1beta2.FlowSchemaList{} | 	emptyResult := &v1beta2.FlowSchemaList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(flowschemasResource, flowschemasKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(flowschemasResource, flowschemasKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested flowSchemas. | // Watch returns a watch.Interface that watches the requested flowSchemas. | ||||||
| func (c *FakeFlowSchemas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeFlowSchemas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(flowschemasResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(flowschemasResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | ||||||
| func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta2.FlowSchema, opts v1.CreateOptions) (result *v1beta2.FlowSchema, err error) { | func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta2.FlowSchema, opts v1.CreateOptions) (result *v1beta2.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta2.FlowSc | |||||||
| func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta2.FlowSchema, opts v1.UpdateOptions) (result *v1beta2.FlowSchema, err error) { | func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta2.FlowSchema, opts v1.UpdateOptions) (result *v1beta2.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta2.FlowSc | |||||||
| func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1beta2.FlowSchema, opts v1.UpdateOptions) (result *v1beta2.FlowSchema, err error) { | func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1beta2.FlowSchema, opts v1.UpdateOptions) (result *v1beta2.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(flowschemasResource, "status", flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(flowschemasResource, "status", flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeFlowSchemas) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(flowschemasResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(flowschemasResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.FlowSchemaList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.FlowSchemaList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.FlowSchema, err error) { | func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeFlowSchemas) Apply(ctx context.Context, flowSchema *flowcontrolv1be | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeFlowSchemas) ApplyStatus(ctx context.Context, flowSchema *flowcontr | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.FlowSchema{} | 	emptyResult := &v1beta2.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var prioritylevelconfigurationsKind = v1beta2.SchemeGroupVersion.WithKind("Prior | |||||||
| func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(prioritylevelconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(prioritylevelconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, | |||||||
| func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PriorityLevelConfigurationList, err error) { | func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PriorityLevelConfigurationList, err error) { | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfigurationList{} | 	emptyResult := &v1beta2.PriorityLevelConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.List | |||||||
| // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | ||||||
| func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(prioritylevelconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(prioritylevelconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | ||||||
| func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1beta2.PriorityLevelConfiguration, opts v1.CreateOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1beta2.PriorityLevelConfiguration, opts v1.CreateOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1beta2.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1beta2.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1beta2.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1beta2.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta2.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakePriorityLevelConfigurations) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(prioritylevelconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(prioritylevelconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta2.PriorityLevelConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1beta2.PriorityLevelConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakePriorityLevelConfigurations) Apply(ctx context.Context, priorityLev | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakePriorityLevelConfigurations) ApplyStatus(ctx context.Context, prior | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | 	emptyResult := &v1beta2.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var flowschemasKind = v1beta3.SchemeGroupVersion.WithKind("FlowSchema") | |||||||
| func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta3.FlowSchema, err error) { | func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta3.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(flowschemasResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(flowschemasResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeFlowSchemas) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.FlowSchemaList, err error) { | func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.FlowSchemaList, err error) { | ||||||
| 	emptyResult := &v1beta3.FlowSchemaList{} | 	emptyResult := &v1beta3.FlowSchemaList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(flowschemasResource, flowschemasKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(flowschemasResource, flowschemasKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeFlowSchemas) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested flowSchemas. | // Watch returns a watch.Interface that watches the requested flowSchemas. | ||||||
| func (c *FakeFlowSchemas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeFlowSchemas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(flowschemasResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(flowschemasResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | // Create takes the representation of a flowSchema and creates it.  Returns the server's representation of the flowSchema, and an error, if there is any. | ||||||
| func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta3.FlowSchema, opts v1.CreateOptions) (result *v1beta3.FlowSchema, err error) { | func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta3.FlowSchema, opts v1.CreateOptions) (result *v1beta3.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeFlowSchemas) Create(ctx context.Context, flowSchema *v1beta3.FlowSc | |||||||
| func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta3.FlowSchema, opts v1.UpdateOptions) (result *v1beta3.FlowSchema, err error) { | func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta3.FlowSchema, opts v1.UpdateOptions) (result *v1beta3.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(flowschemasResource, flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(flowschemasResource, flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeFlowSchemas) Update(ctx context.Context, flowSchema *v1beta3.FlowSc | |||||||
| func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1beta3.FlowSchema, opts v1.UpdateOptions) (result *v1beta3.FlowSchema, err error) { | func (c *FakeFlowSchemas) UpdateStatus(ctx context.Context, flowSchema *v1beta3.FlowSchema, opts v1.UpdateOptions) (result *v1beta3.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(flowschemasResource, "status", flowSchema), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(flowschemasResource, "status", flowSchema, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeFlowSchemas) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(flowschemasResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(flowschemasResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta3.FlowSchemaList{}) | 	_, err := c.Fake.Invokes(action, &v1beta3.FlowSchemaList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeFlowSchemas) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta3.FlowSchema, err error) { | func (c *FakeFlowSchemas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta3.FlowSchema, err error) { | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeFlowSchemas) Apply(ctx context.Context, flowSchema *flowcontrolv1be | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeFlowSchemas) ApplyStatus(ctx context.Context, flowSchema *flowcontr | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta3.FlowSchema{} | 	emptyResult := &v1beta3.FlowSchema{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(flowschemasResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(flowschemasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var prioritylevelconfigurationsKind = v1beta3.SchemeGroupVersion.WithKind("Prior | |||||||
| func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(prioritylevelconfigurationsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(prioritylevelconfigurationsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakePriorityLevelConfigurations) Get(ctx context.Context, name string, | |||||||
| func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.PriorityLevelConfigurationList, err error) { | func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.PriorityLevelConfigurationList, err error) { | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfigurationList{} | 	emptyResult := &v1beta3.PriorityLevelConfigurationList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(prioritylevelconfigurationsResource, prioritylevelconfigurationsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakePriorityLevelConfigurations) List(ctx context.Context, opts v1.List | |||||||
| // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | // Watch returns a watch.Interface that watches the requested priorityLevelConfigurations. | ||||||
| func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakePriorityLevelConfigurations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(prioritylevelconfigurationsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(prioritylevelconfigurationsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | // Create takes the representation of a priorityLevelConfiguration and creates it.  Returns the server's representation of the priorityLevelConfiguration, and an error, if there is any. | ||||||
| func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1beta3.PriorityLevelConfiguration, opts v1.CreateOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLevelConfiguration *v1beta3.PriorityLevelConfiguration, opts v1.CreateOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakePriorityLevelConfigurations) Create(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1beta3.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLevelConfiguration *v1beta3.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(prioritylevelconfigurationsResource, priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(prioritylevelconfigurationsResource, priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakePriorityLevelConfigurations) Update(ctx context.Context, priorityLe | |||||||
| func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1beta3.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) UpdateStatus(ctx context.Context, priorityLevelConfiguration *v1beta3.PriorityLevelConfiguration, opts v1.UpdateOptions) (result *v1beta3.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(prioritylevelconfigurationsResource, "status", priorityLevelConfiguration, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakePriorityLevelConfigurations) Delete(ctx context.Context, name strin | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(prioritylevelconfigurationsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(prioritylevelconfigurationsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta3.PriorityLevelConfigurationList{}) | 	_, err := c.Fake.Invokes(action, &v1beta3.PriorityLevelConfigurationList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakePriorityLevelConfigurations) DeleteCollection(ctx context.Context, | |||||||
| func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta3.PriorityLevelConfiguration, err error) { | func (c *FakePriorityLevelConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta3.PriorityLevelConfiguration, err error) { | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakePriorityLevelConfigurations) Apply(ctx context.Context, priorityLev | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakePriorityLevelConfigurations) ApplyStatus(ctx context.Context, prior | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | 	emptyResult := &v1beta3.PriorityLevelConfiguration{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(prioritylevelconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var ingressesKind = v1.SchemeGroupVersion.WithKind("Ingress") | |||||||
| func (c *FakeIngresses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Ingress, err error) { | func (c *FakeIngresses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Ingress, err error) { | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(ingressesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(ingressesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeIngresses) Get(ctx context.Context, name string, options metav1.Get | |||||||
| func (c *FakeIngresses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressList, err error) { | func (c *FakeIngresses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressList, err error) { | ||||||
| 	emptyResult := &v1.IngressList{} | 	emptyResult := &v1.IngressList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(ingressesResource, ingressesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(ingressesResource, ingressesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeIngresses) List(ctx context.Context, opts metav1.ListOptions) (resu | |||||||
| // Watch returns a watch.Interface that watches the requested ingresses. | // Watch returns a watch.Interface that watches the requested ingresses. | ||||||
| func (c *FakeIngresses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeIngresses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(ingressesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(ingressesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeIngresses) Watch(ctx context.Context, opts metav1.ListOptions) (wat | |||||||
| func (c *FakeIngresses) Create(ctx context.Context, ingress *v1.Ingress, opts metav1.CreateOptions) (result *v1.Ingress, err error) { | func (c *FakeIngresses) Create(ctx context.Context, ingress *v1.Ingress, opts metav1.CreateOptions) (result *v1.Ingress, err error) { | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(ingressesResource, c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeIngresses) Create(ctx context.Context, ingress *v1.Ingress, opts me | |||||||
| func (c *FakeIngresses) Update(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (result *v1.Ingress, err error) { | func (c *FakeIngresses) Update(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (result *v1.Ingress, err error) { | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(ingressesResource, c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeIngresses) Update(ctx context.Context, ingress *v1.Ingress, opts me | |||||||
| func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (result *v1.Ingress, err error) { | func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (result *v1.Ingress, err error) { | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(ingressesResource, "status", c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeIngresses) Delete(ctx context.Context, name string, opts metav1.Del | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(ingressesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.IngressList{}) | 	_, err := c.Fake.Invokes(action, &v1.IngressList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts metav1.Delete | |||||||
| func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Ingress, err error) { | func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Ingress, err error) { | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeIngresses) Apply(ctx context.Context, ingress *networkingv1.Ingress | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeIngresses) ApplyStatus(ctx context.Context, ingress *networkingv1.I | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.Ingress{} | 	emptyResult := &v1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var ingressclassesKind = v1.SchemeGroupVersion.WithKind("IngressClass") | |||||||
| func (c *FakeIngressClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.IngressClass, err error) { | func (c *FakeIngressClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1.IngressClass{} | 	emptyResult := &v1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(ingressclassesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(ingressclassesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeIngressClasses) Get(ctx context.Context, name string, options metav | |||||||
| func (c *FakeIngressClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressClassList, err error) { | func (c *FakeIngressClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressClassList, err error) { | ||||||
| 	emptyResult := &v1.IngressClassList{} | 	emptyResult := &v1.IngressClassList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(ingressclassesResource, ingressclassesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(ingressclassesResource, ingressclassesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeIngressClasses) List(ctx context.Context, opts metav1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested ingressClasses. | // Watch returns a watch.Interface that watches the requested ingressClasses. | ||||||
| func (c *FakeIngressClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeIngressClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(ingressclassesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(ingressclassesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a ingressClass and creates it.  Returns the server's representation of the ingressClass, and an error, if there is any. | // Create takes the representation of a ingressClass and creates it.  Returns the server's representation of the ingressClass, and an error, if there is any. | ||||||
| func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *v1.IngressClass, opts metav1.CreateOptions) (result *v1.IngressClass, err error) { | func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *v1.IngressClass, opts metav1.CreateOptions) (result *v1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1.IngressClass{} | 	emptyResult := &v1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(ingressclassesResource, ingressClass), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(ingressclassesResource, ingressClass, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *v1.Ingres | |||||||
| func (c *FakeIngressClasses) Update(ctx context.Context, ingressClass *v1.IngressClass, opts metav1.UpdateOptions) (result *v1.IngressClass, err error) { | func (c *FakeIngressClasses) Update(ctx context.Context, ingressClass *v1.IngressClass, opts metav1.UpdateOptions) (result *v1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1.IngressClass{} | 	emptyResult := &v1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(ingressclassesResource, ingressClass), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(ingressclassesResource, ingressClass, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeIngressClasses) Delete(ctx context.Context, name string, opts metav | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(ingressclassesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(ingressclassesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.IngressClassList{}) | 	_, err := c.Fake.Invokes(action, &v1.IngressClassList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts metav1.D | |||||||
| func (c *FakeIngressClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressClass, err error) { | func (c *FakeIngressClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1.IngressClass{} | 	emptyResult := &v1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(ingressclassesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressclassesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeIngressClasses) Apply(ctx context.Context, ingressClass *networking | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.IngressClass{} | 	emptyResult := &v1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(ingressclassesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressclassesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var networkpoliciesKind = v1.SchemeGroupVersion.WithKind("NetworkPolicy") | |||||||
| func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1.NetworkPolicy{} | 	emptyResult := &v1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(networkpoliciesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(networkpoliciesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options meta | |||||||
| func (c *FakeNetworkPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPolicyList, err error) { | func (c *FakeNetworkPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPolicyList, err error) { | ||||||
| 	emptyResult := &v1.NetworkPolicyList{} | 	emptyResult := &v1.NetworkPolicyList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(networkpoliciesResource, networkpoliciesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(networkpoliciesResource, networkpoliciesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeNetworkPolicies) List(ctx context.Context, opts metav1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested networkPolicies. | // Watch returns a watch.Interface that watches the requested networkPolicies. | ||||||
| func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(networkpoliciesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(networkpoliciesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts metav1.ListOptions | |||||||
| func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1.NetworkPolicy, opts metav1.CreateOptions) (result *v1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1.NetworkPolicy, opts metav1.CreateOptions) (result *v1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1.NetworkPolicy{} | 	emptyResult := &v1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(networkpoliciesResource, c.ns, networkPolicy), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(networkpoliciesResource, c.ns, networkPolicy, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1.Netw | |||||||
| func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1.NetworkPolicy, opts metav1.UpdateOptions) (result *v1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1.NetworkPolicy, opts metav1.UpdateOptions) (result *v1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1.NetworkPolicy{} | 	emptyResult := &v1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(networkpoliciesResource, c.ns, networkPolicy), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(networkpoliciesResource, c.ns, networkPolicy, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -118,7 +118,7 @@ func (c *FakeNetworkPolicies) Delete(ctx context.Context, name string, opts meta | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(networkpoliciesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(networkpoliciesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.NetworkPolicyList{}) | 	_, err := c.Fake.Invokes(action, &v1.NetworkPolicyList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -128,7 +128,7 @@ func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts metav1. | |||||||
| func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.NetworkPolicy, err error) { | func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.NetworkPolicy, err error) { | ||||||
| 	emptyResult := &v1.NetworkPolicy{} | 	emptyResult := &v1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(networkpoliciesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(networkpoliciesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -151,7 +151,7 @@ func (c *FakeNetworkPolicies) Apply(ctx context.Context, networkPolicy *networki | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.NetworkPolicy{} | 	emptyResult := &v1.NetworkPolicy{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(networkpoliciesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(networkpoliciesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var ipaddressesKind = v1alpha1.SchemeGroupVersion.WithKind("IPAddress") | |||||||
| func (c *FakeIPAddresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAddress, err error) { | func (c *FakeIPAddresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IPAddress, err error) { | ||||||
| 	emptyResult := &v1alpha1.IPAddress{} | 	emptyResult := &v1alpha1.IPAddress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(ipaddressesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(ipaddressesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeIPAddresses) Get(ctx context.Context, name string, options v1.GetOp | |||||||
| func (c *FakeIPAddresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAddressList, err error) { | func (c *FakeIPAddresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAddressList, err error) { | ||||||
| 	emptyResult := &v1alpha1.IPAddressList{} | 	emptyResult := &v1alpha1.IPAddressList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(ipaddressesResource, ipaddressesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(ipaddressesResource, ipaddressesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeIPAddresses) List(ctx context.Context, opts v1.ListOptions) (result | |||||||
| // Watch returns a watch.Interface that watches the requested iPAddresses. | // Watch returns a watch.Interface that watches the requested iPAddresses. | ||||||
| func (c *FakeIPAddresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeIPAddresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(ipaddressesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(ipaddressesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a iPAddress and creates it.  Returns the server's representation of the iPAddress, and an error, if there is any. | // Create takes the representation of a iPAddress and creates it.  Returns the server's representation of the iPAddress, and an error, if there is any. | ||||||
| func (c *FakeIPAddresses) Create(ctx context.Context, iPAddress *v1alpha1.IPAddress, opts v1.CreateOptions) (result *v1alpha1.IPAddress, err error) { | func (c *FakeIPAddresses) Create(ctx context.Context, iPAddress *v1alpha1.IPAddress, opts v1.CreateOptions) (result *v1alpha1.IPAddress, err error) { | ||||||
| 	emptyResult := &v1alpha1.IPAddress{} | 	emptyResult := &v1alpha1.IPAddress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(ipaddressesResource, iPAddress), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(ipaddressesResource, iPAddress, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeIPAddresses) Create(ctx context.Context, iPAddress *v1alpha1.IPAddr | |||||||
| func (c *FakeIPAddresses) Update(ctx context.Context, iPAddress *v1alpha1.IPAddress, opts v1.UpdateOptions) (result *v1alpha1.IPAddress, err error) { | func (c *FakeIPAddresses) Update(ctx context.Context, iPAddress *v1alpha1.IPAddress, opts v1.UpdateOptions) (result *v1alpha1.IPAddress, err error) { | ||||||
| 	emptyResult := &v1alpha1.IPAddress{} | 	emptyResult := &v1alpha1.IPAddress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(ipaddressesResource, iPAddress), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(ipaddressesResource, iPAddress, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeIPAddresses) Delete(ctx context.Context, name string, opts v1.Delet | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeIPAddresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeIPAddresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(ipaddressesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(ipaddressesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1alpha1.IPAddressList{}) | 	_, err := c.Fake.Invokes(action, &v1alpha1.IPAddressList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeIPAddresses) DeleteCollection(ctx context.Context, opts v1.DeleteOp | |||||||
| func (c *FakeIPAddresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.IPAddress, err error) { | func (c *FakeIPAddresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.IPAddress, err error) { | ||||||
| 	emptyResult := &v1alpha1.IPAddress{} | 	emptyResult := &v1alpha1.IPAddress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(ipaddressesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(ipaddressesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeIPAddresses) Apply(ctx context.Context, iPAddress *networkingv1alph | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.IPAddress{} | 	emptyResult := &v1alpha1.IPAddress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(ipaddressesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(ipaddressesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var servicecidrsKind = v1alpha1.SchemeGroupVersion.WithKind("ServiceCIDR") | |||||||
| func (c *FakeServiceCIDRs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ServiceCIDR, err error) { | func (c *FakeServiceCIDRs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ServiceCIDR, err error) { | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(servicecidrsResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(servicecidrsResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeServiceCIDRs) Get(ctx context.Context, name string, options v1.GetO | |||||||
| func (c *FakeServiceCIDRs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServiceCIDRList, err error) { | func (c *FakeServiceCIDRs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServiceCIDRList, err error) { | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDRList{} | 	emptyResult := &v1alpha1.ServiceCIDRList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(servicecidrsResource, servicecidrsKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(servicecidrsResource, servicecidrsKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeServiceCIDRs) List(ctx context.Context, opts v1.ListOptions) (resul | |||||||
| // Watch returns a watch.Interface that watches the requested serviceCIDRs. | // Watch returns a watch.Interface that watches the requested serviceCIDRs. | ||||||
| func (c *FakeServiceCIDRs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeServiceCIDRs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(servicecidrsResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(servicecidrsResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a serviceCIDR and creates it.  Returns the server's representation of the serviceCIDR, and an error, if there is any. | // Create takes the representation of a serviceCIDR and creates it.  Returns the server's representation of the serviceCIDR, and an error, if there is any. | ||||||
| func (c *FakeServiceCIDRs) Create(ctx context.Context, serviceCIDR *v1alpha1.ServiceCIDR, opts v1.CreateOptions) (result *v1alpha1.ServiceCIDR, err error) { | func (c *FakeServiceCIDRs) Create(ctx context.Context, serviceCIDR *v1alpha1.ServiceCIDR, opts v1.CreateOptions) (result *v1alpha1.ServiceCIDR, err error) { | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(servicecidrsResource, serviceCIDR), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(servicecidrsResource, serviceCIDR, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeServiceCIDRs) Create(ctx context.Context, serviceCIDR *v1alpha1.Ser | |||||||
| func (c *FakeServiceCIDRs) Update(ctx context.Context, serviceCIDR *v1alpha1.ServiceCIDR, opts v1.UpdateOptions) (result *v1alpha1.ServiceCIDR, err error) { | func (c *FakeServiceCIDRs) Update(ctx context.Context, serviceCIDR *v1alpha1.ServiceCIDR, opts v1.UpdateOptions) (result *v1alpha1.ServiceCIDR, err error) { | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(servicecidrsResource, serviceCIDR), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(servicecidrsResource, serviceCIDR, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -107,7 +107,7 @@ func (c *FakeServiceCIDRs) Update(ctx context.Context, serviceCIDR *v1alpha1.Ser | |||||||
| func (c *FakeServiceCIDRs) UpdateStatus(ctx context.Context, serviceCIDR *v1alpha1.ServiceCIDR, opts v1.UpdateOptions) (result *v1alpha1.ServiceCIDR, err error) { | func (c *FakeServiceCIDRs) UpdateStatus(ctx context.Context, serviceCIDR *v1alpha1.ServiceCIDR, opts v1.UpdateOptions) (result *v1alpha1.ServiceCIDR, err error) { | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(servicecidrsResource, "status", serviceCIDR), emptyResult) | 		Invokes(testing.NewRootUpdateSubresourceActionWithOptions(servicecidrsResource, "status", serviceCIDR, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -123,7 +123,7 @@ func (c *FakeServiceCIDRs) Delete(ctx context.Context, name string, opts v1.Dele | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeServiceCIDRs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeServiceCIDRs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(servicecidrsResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(servicecidrsResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1alpha1.ServiceCIDRList{}) | 	_, err := c.Fake.Invokes(action, &v1alpha1.ServiceCIDRList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -133,7 +133,7 @@ func (c *FakeServiceCIDRs) DeleteCollection(ctx context.Context, opts v1.DeleteO | |||||||
| func (c *FakeServiceCIDRs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ServiceCIDR, err error) { | func (c *FakeServiceCIDRs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ServiceCIDR, err error) { | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(servicecidrsResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecidrsResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -155,7 +155,7 @@ func (c *FakeServiceCIDRs) Apply(ctx context.Context, serviceCIDR *networkingv1a | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(servicecidrsResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecidrsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -178,7 +178,7 @@ func (c *FakeServiceCIDRs) ApplyStatus(ctx context.Context, serviceCIDR *network | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1alpha1.ServiceCIDR{} | 	emptyResult := &v1alpha1.ServiceCIDR{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(servicecidrsResource, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecidrsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ var ingressesKind = v1beta1.SchemeGroupVersion.WithKind("Ingress") | |||||||
| func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewGetAction(ingressesResource, c.ns, name), emptyResult) | 		Invokes(testing.NewGetActionWithOptions(ingressesResource, c.ns, name, options), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -58,7 +58,7 @@ func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOpti | |||||||
| func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressList{} | 	emptyResult := &v1beta1.IngressList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewListAction(ingressesResource, ingressesKind, c.ns, opts), emptyResult) | 		Invokes(testing.NewListActionWithOptions(ingressesResource, ingressesKind, c.ns, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -80,7 +80,7 @@ func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result * | |||||||
| // Watch returns a watch.Interface that watches the requested ingresses. | // Watch returns a watch.Interface that watches the requested ingresses. | ||||||
| func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewWatchAction(ingressesResource, c.ns, opts)) | 		InvokesWatch(testing.NewWatchActionWithOptions(ingressesResource, c.ns, opts)) | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -88,7 +88,7 @@ func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.I | |||||||
| func (c *FakeIngresses) Create(ctx context.Context, ingress *v1beta1.Ingress, opts v1.CreateOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Create(ctx context.Context, ingress *v1beta1.Ingress, opts v1.CreateOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), emptyResult) | 		Invokes(testing.NewCreateActionWithOptions(ingressesResource, c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -100,7 +100,7 @@ func (c *FakeIngresses) Create(ctx context.Context, ingress *v1beta1.Ingress, op | |||||||
| func (c *FakeIngresses) Update(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Update(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), emptyResult) | 		Invokes(testing.NewUpdateActionWithOptions(ingressesResource, c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -113,7 +113,7 @@ func (c *FakeIngresses) Update(ctx context.Context, ingress *v1beta1.Ingress, op | |||||||
| func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1beta1.Ingress, opts v1.UpdateOptions) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), emptyResult) | 		Invokes(testing.NewUpdateSubresourceActionWithOptions(ingressesResource, "status", c.ns, ingress, opts), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -131,7 +131,7 @@ func (c *FakeIngresses) Delete(ctx context.Context, name string, opts v1.DeleteO | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOpts) | 	action := testing.NewDeleteCollectionActionWithOptions(ingressesResource, c.ns, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -141,7 +141,7 @@ func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOpti | |||||||
| func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Ingress, err error) { | func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Ingress, err error) { | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -164,7 +164,7 @@ func (c *FakeIngresses) Apply(ctx context.Context, ingress *networkingv1beta1.In | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| @@ -188,7 +188,7 @@ func (c *FakeIngresses) ApplyStatus(ctx context.Context, ingress *networkingv1be | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.Ingress{} | 	emptyResult := &v1beta1.Ingress{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewPatchSubresourceAction(ingressesResource, c.ns, *name, types.ApplyPatchType, data, "status"), emptyResult) | 		Invokes(testing.NewPatchSubresourceActionWithOptions(ingressesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) | ||||||
|  |  | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var ingressclassesKind = v1beta1.SchemeGroupVersion.WithKind("IngressClass") | |||||||
| func (c *FakeIngressClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IngressClass, err error) { | func (c *FakeIngressClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressClass{} | 	emptyResult := &v1beta1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(ingressclassesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(ingressclassesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeIngressClasses) Get(ctx context.Context, name string, options v1.Ge | |||||||
| func (c *FakeIngressClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressClassList, err error) { | func (c *FakeIngressClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressClassList, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressClassList{} | 	emptyResult := &v1beta1.IngressClassList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(ingressclassesResource, ingressclassesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(ingressclassesResource, ingressclassesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeIngressClasses) List(ctx context.Context, opts v1.ListOptions) (res | |||||||
| // Watch returns a watch.Interface that watches the requested ingressClasses. | // Watch returns a watch.Interface that watches the requested ingressClasses. | ||||||
| func (c *FakeIngressClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | func (c *FakeIngressClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(ingressclassesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(ingressclassesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a ingressClass and creates it.  Returns the server's representation of the ingressClass, and an error, if there is any. | // Create takes the representation of a ingressClass and creates it.  Returns the server's representation of the ingressClass, and an error, if there is any. | ||||||
| func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *v1beta1.IngressClass, opts v1.CreateOptions) (result *v1beta1.IngressClass, err error) { | func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *v1beta1.IngressClass, opts v1.CreateOptions) (result *v1beta1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressClass{} | 	emptyResult := &v1beta1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(ingressclassesResource, ingressClass), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(ingressclassesResource, ingressClass, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *v1beta1.I | |||||||
| func (c *FakeIngressClasses) Update(ctx context.Context, ingressClass *v1beta1.IngressClass, opts v1.UpdateOptions) (result *v1beta1.IngressClass, err error) { | func (c *FakeIngressClasses) Update(ctx context.Context, ingressClass *v1beta1.IngressClass, opts v1.UpdateOptions) (result *v1beta1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressClass{} | 	emptyResult := &v1beta1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(ingressclassesResource, ingressClass), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(ingressclassesResource, ingressClass, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeIngressClasses) Delete(ctx context.Context, name string, opts v1.De | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(ingressclassesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(ingressclassesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.IngressClassList{}) | 	_, err := c.Fake.Invokes(action, &v1beta1.IngressClassList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts v1.Delet | |||||||
| func (c *FakeIngressClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IngressClass, err error) { | func (c *FakeIngressClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.IngressClass, err error) { | ||||||
| 	emptyResult := &v1beta1.IngressClass{} | 	emptyResult := &v1beta1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(ingressclassesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressclassesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeIngressClasses) Apply(ctx context.Context, ingressClass *networking | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1beta1.IngressClass{} | 	emptyResult := &v1beta1.IngressClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(ingressclassesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressclassesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ var runtimeclassesKind = v1.SchemeGroupVersion.WithKind("RuntimeClass") | |||||||
| func (c *FakeRuntimeClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RuntimeClass, err error) { | func (c *FakeRuntimeClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RuntimeClass, err error) { | ||||||
| 	emptyResult := &v1.RuntimeClass{} | 	emptyResult := &v1.RuntimeClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootGetAction(runtimeclassesResource, name), emptyResult) | 		Invokes(testing.NewRootGetActionWithOptions(runtimeclassesResource, name, options), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -56,7 +56,7 @@ func (c *FakeRuntimeClasses) Get(ctx context.Context, name string, options metav | |||||||
| func (c *FakeRuntimeClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RuntimeClassList, err error) { | func (c *FakeRuntimeClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RuntimeClassList, err error) { | ||||||
| 	emptyResult := &v1.RuntimeClassList{} | 	emptyResult := &v1.RuntimeClassList{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootListAction(runtimeclassesResource, runtimeclassesKind, opts), emptyResult) | 		Invokes(testing.NewRootListActionWithOptions(runtimeclassesResource, runtimeclassesKind, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -77,14 +77,14 @@ func (c *FakeRuntimeClasses) List(ctx context.Context, opts metav1.ListOptions) | |||||||
| // Watch returns a watch.Interface that watches the requested runtimeClasses. | // Watch returns a watch.Interface that watches the requested runtimeClasses. | ||||||
| func (c *FakeRuntimeClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | func (c *FakeRuntimeClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { | ||||||
| 	return c.Fake. | 	return c.Fake. | ||||||
| 		InvokesWatch(testing.NewRootWatchAction(runtimeclassesResource, opts)) | 		InvokesWatch(testing.NewRootWatchActionWithOptions(runtimeclassesResource, opts)) | ||||||
| } | } | ||||||
|  |  | ||||||
| // Create takes the representation of a runtimeClass and creates it.  Returns the server's representation of the runtimeClass, and an error, if there is any. | // Create takes the representation of a runtimeClass and creates it.  Returns the server's representation of the runtimeClass, and an error, if there is any. | ||||||
| func (c *FakeRuntimeClasses) Create(ctx context.Context, runtimeClass *v1.RuntimeClass, opts metav1.CreateOptions) (result *v1.RuntimeClass, err error) { | func (c *FakeRuntimeClasses) Create(ctx context.Context, runtimeClass *v1.RuntimeClass, opts metav1.CreateOptions) (result *v1.RuntimeClass, err error) { | ||||||
| 	emptyResult := &v1.RuntimeClass{} | 	emptyResult := &v1.RuntimeClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootCreateAction(runtimeclassesResource, runtimeClass), emptyResult) | 		Invokes(testing.NewRootCreateActionWithOptions(runtimeclassesResource, runtimeClass, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -95,7 +95,7 @@ func (c *FakeRuntimeClasses) Create(ctx context.Context, runtimeClass *v1.Runtim | |||||||
| func (c *FakeRuntimeClasses) Update(ctx context.Context, runtimeClass *v1.RuntimeClass, opts metav1.UpdateOptions) (result *v1.RuntimeClass, err error) { | func (c *FakeRuntimeClasses) Update(ctx context.Context, runtimeClass *v1.RuntimeClass, opts metav1.UpdateOptions) (result *v1.RuntimeClass, err error) { | ||||||
| 	emptyResult := &v1.RuntimeClass{} | 	emptyResult := &v1.RuntimeClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootUpdateAction(runtimeclassesResource, runtimeClass), emptyResult) | 		Invokes(testing.NewRootUpdateActionWithOptions(runtimeclassesResource, runtimeClass, opts), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -111,7 +111,7 @@ func (c *FakeRuntimeClasses) Delete(ctx context.Context, name string, opts metav | |||||||
|  |  | ||||||
| // DeleteCollection deletes a collection of objects. | // DeleteCollection deletes a collection of objects. | ||||||
| func (c *FakeRuntimeClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | func (c *FakeRuntimeClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { | ||||||
| 	action := testing.NewRootDeleteCollectionAction(runtimeclassesResource, listOpts) | 	action := testing.NewRootDeleteCollectionActionWithOptions(runtimeclassesResource, opts, listOpts) | ||||||
|  |  | ||||||
| 	_, err := c.Fake.Invokes(action, &v1.RuntimeClassList{}) | 	_, err := c.Fake.Invokes(action, &v1.RuntimeClassList{}) | ||||||
| 	return err | 	return err | ||||||
| @@ -121,7 +121,7 @@ func (c *FakeRuntimeClasses) DeleteCollection(ctx context.Context, opts metav1.D | |||||||
| func (c *FakeRuntimeClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RuntimeClass, err error) { | func (c *FakeRuntimeClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RuntimeClass, err error) { | ||||||
| 	emptyResult := &v1.RuntimeClass{} | 	emptyResult := &v1.RuntimeClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(runtimeclassesResource, name, pt, data, subresources...), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(runtimeclassesResource, name, pt, data, opts, subresources...), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
| @@ -143,7 +143,7 @@ func (c *FakeRuntimeClasses) Apply(ctx context.Context, runtimeClass *nodev1.Run | |||||||
| 	} | 	} | ||||||
| 	emptyResult := &v1.RuntimeClass{} | 	emptyResult := &v1.RuntimeClass{} | ||||||
| 	obj, err := c.Fake. | 	obj, err := c.Fake. | ||||||
| 		Invokes(testing.NewRootPatchSubresourceAction(runtimeclassesResource, *name, types.ApplyPatchType, data), emptyResult) | 		Invokes(testing.NewRootPatchSubresourceActionWithOptions(runtimeclassesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) | ||||||
| 	if obj == nil { | 	if obj == nil { | ||||||
| 		return emptyResult, err | 		return emptyResult, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Joe Betz
					Joe Betz