mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #27293 from caesarxuchao/add-patch-to-clientset
Automatic merge from submit-queue [client-gen]Add Patch to clientset * add the Patch() method to the clientset. * I have to rename the existing Patch() method of `Event` to PatchWithEventNamespace() to avoid overriding. * some minor changes to the fake Patch action. cc @Random-Liu since he asked for the method @kubernetes/sig-api-machinery ref #26580 ```release-note Add the Patch method to the generated clientset. ```
This commit is contained in:
		@@ -115,6 +115,7 @@ func (g *genFakeForType) GenerateType(c *generator.Context, t *types.Type, w io.
 | 
			
		||||
		"apiDeleteOptions":     c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "DeleteOptions"}),
 | 
			
		||||
		"apiListOptions":       c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "ListOptions"}),
 | 
			
		||||
		"GroupVersionResource": c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api/unversioned", Name: "GroupVersionResource"}),
 | 
			
		||||
		"PatchType":            c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "PatchType"}),
 | 
			
		||||
		"Everything":           c.Universe.Function(types.Name{Package: "k8s.io/kubernetes/pkg/labels", Name: "Everything"}),
 | 
			
		||||
 | 
			
		||||
		"NewRootListAction":              c.Universe.Function(types.Name{Package: pkgTestingCore, Name: "NewRootListAction"}),
 | 
			
		||||
@@ -133,6 +134,8 @@ func (g *genFakeForType) GenerateType(c *generator.Context, t *types.Type, w io.
 | 
			
		||||
		"NewWatchAction":                 c.Universe.Function(types.Name{Package: pkgTestingCore, Name: "NewWatchAction"}),
 | 
			
		||||
		"NewUpdateSubresourceAction":     c.Universe.Function(types.Name{Package: pkgTestingCore, Name: "NewUpdateSubresourceAction"}),
 | 
			
		||||
		"NewRootUpdateSubresourceAction": c.Universe.Function(types.Name{Package: pkgTestingCore, Name: "NewRootUpdateSubresourceAction"}),
 | 
			
		||||
		"NewRootPatchAction":             c.Universe.Function(types.Name{Package: pkgTestingCore, Name: "NewRootPatchAction"}),
 | 
			
		||||
		"NewPatchAction":                 c.Universe.Function(types.Name{Package: pkgTestingCore, Name: "NewPatchAction"}),
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	noMethods := types.ExtractCommentTags("+", t.SecondClosestCommentLines)["noMethods"] == "true"
 | 
			
		||||
@@ -160,7 +163,7 @@ func (g *genFakeForType) GenerateType(c *generator.Context, t *types.Type, w io.
 | 
			
		||||
			sw.Do(listTemplate, m)
 | 
			
		||||
		}
 | 
			
		||||
		sw.Do(watchTemplate, m)
 | 
			
		||||
 | 
			
		||||
		sw.Do(patchTemplate, m)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return sw.Error()
 | 
			
		||||
@@ -297,3 +300,16 @@ func (c *Fake$.type|publicPlural$) Watch(opts $.apiListOptions|raw$) ($.watchInt
 | 
			
		||||
		$else$InvokesWatch($.NewRootWatchAction|raw$($.type|allLowercasePlural$Resource, opts))$end$
 | 
			
		||||
}
 | 
			
		||||
`
 | 
			
		||||
 | 
			
		||||
var patchTemplate = `
 | 
			
		||||
// Patch applies the patch and returns the patched $.type|private$.
 | 
			
		||||
func (c *Fake$.type|publicPlural$) Patch(name string, pt $.PatchType|raw$, data []byte) (result *$.type|raw$, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		$if .namespaced$Invokes($.NewPatchAction|raw$($.type|allLowercasePlural$Resource, c.ns, name, data), &$.type|raw${})
 | 
			
		||||
		$else$Invokes($.NewRootPatchAction|raw$($.type|allLowercasePlural$Resource, name, data), &$.type|raw${})$end$
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*$.type|raw$), err
 | 
			
		||||
}
 | 
			
		||||
`
 | 
			
		||||
 
 | 
			
		||||
@@ -76,6 +76,7 @@ func (g *genClientForType) GenerateType(c *generator.Context, t *types.Type, w i
 | 
			
		||||
		"apiDeleteOptions":  c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "DeleteOptions"}),
 | 
			
		||||
		"apiListOptions":    c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "ListOptions"}),
 | 
			
		||||
		"apiParameterCodec": c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "ParameterCodec"}),
 | 
			
		||||
		"PatchType":         c.Universe.Type(types.Name{Package: "k8s.io/kubernetes/pkg/api", Name: "PatchType"}),
 | 
			
		||||
		"namespaced":        namespaced,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@@ -118,6 +119,7 @@ func (g *genClientForType) GenerateType(c *generator.Context, t *types.Type, w i
 | 
			
		||||
		sw.Do(getTemplate, m)
 | 
			
		||||
		sw.Do(listTemplate, m)
 | 
			
		||||
		sw.Do(watchTemplate, m)
 | 
			
		||||
		sw.Do(patchTemplate, m)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return sw.Error()
 | 
			
		||||
@@ -158,7 +160,8 @@ var interfaceTemplate3 = `
 | 
			
		||||
	DeleteCollection(options *$.apiDeleteOptions|raw$, listOptions $.apiListOptions|raw$) error
 | 
			
		||||
	Get(name string) (*$.type|raw$, error)
 | 
			
		||||
	List(opts $.apiListOptions|raw$) (*$.type|raw$List, error)
 | 
			
		||||
	Watch(opts $.apiListOptions|raw$) ($.watchInterface|raw$, error)`
 | 
			
		||||
	Watch(opts $.apiListOptions|raw$) ($.watchInterface|raw$, error)
 | 
			
		||||
	Patch(name string, pt $.PatchType|raw$, data []byte) (result *$.type|raw$, err error)`
 | 
			
		||||
 | 
			
		||||
var interfaceTemplate4 = `
 | 
			
		||||
	$.type|public$Expansion
 | 
			
		||||
@@ -309,3 +312,18 @@ func (c *$.type|privatePlural$) Watch(opts $.apiListOptions|raw$) ($.watchInterf
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
`
 | 
			
		||||
 | 
			
		||||
var patchTemplate = `
 | 
			
		||||
// Patch applies the patch and returns the patched $.type|private$.
 | 
			
		||||
func (c *$.type|privatePlural$) Patch(name string, pt $.PatchType|raw$, data []byte) (result *$.type|raw$, err error) {
 | 
			
		||||
	result = &$.type|raw${}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		$if .namespaced$Namespace(c.ns).$end$
 | 
			
		||||
		Resource("$.type|allLowercasePlural$").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
`
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeTestTypes) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(testtypesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched testType.
 | 
			
		||||
func (c *FakeTestTypes) Patch(name string, pt api.PatchType, data []byte) (result *testgroup_k8s_io.TestType, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(testtypesResource, c.ns, name, data), &testgroup_k8s_io.TestType{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*testgroup_k8s_io.TestType), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -245,3 +245,25 @@ func TestExpansionInterface(t *testing.T) {
 | 
			
		||||
		t.Errorf("expansion failed")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestPatchTestType(t *testing.T) {
 | 
			
		||||
	ns := api.NamespaceDefault
 | 
			
		||||
	requestTestType := &testgroup.TestType{
 | 
			
		||||
		ObjectMeta: api.ObjectMeta{
 | 
			
		||||
			Name:            "foo",
 | 
			
		||||
			ResourceVersion: "1",
 | 
			
		||||
			Labels: map[string]string{
 | 
			
		||||
				"foo":  "bar",
 | 
			
		||||
				"name": "baz",
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	c := DecoratedSimpleClient{
 | 
			
		||||
		simpleClient: simple.Client{
 | 
			
		||||
			Request:  simple.Request{Method: "PATCH", Path: testHelper.ResourcePath("testtypes", ns, "foo"), Query: simple.BuildQueryValues(nil)},
 | 
			
		||||
			Response: simple.Response{StatusCode: http.StatusOK, Body: requestTestType},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	receivedTestType, err := c.Setup(t).TestTypes(ns).Patch(requestTestType.Name, api.StrategicMergePatchType, []byte{})
 | 
			
		||||
	c.simpleClient.Validate(t, receivedTestType, err)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type TestTypeInterface interface {
 | 
			
		||||
	Get(name string) (*testgroup_k8s_io.TestType, error)
 | 
			
		||||
	List(opts api.ListOptions) (*testgroup_k8s_io.TestTypeList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *testgroup_k8s_io.TestType, err error)
 | 
			
		||||
	TestTypeExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *testTypes) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched testType.
 | 
			
		||||
func (c *testTypes) Patch(name string, pt api.PatchType, data []byte) (result *testgroup_k8s_io.TestType, err error) {
 | 
			
		||||
	result = &testgroup_k8s_io.TestType{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("testtypes").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -113,3 +113,14 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(servicesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &api.Service{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Service), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ServiceInterface interface {
 | 
			
		||||
	Get(name string) (*api.Service, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ServiceList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error)
 | 
			
		||||
	ServiceExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -147,3 +148,16 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *services) Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) {
 | 
			
		||||
	result = &api.Service{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("services").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type ClusterInterface interface {
 | 
			
		||||
	Get(name string) (*federation.Cluster, error)
 | 
			
		||||
	List(opts api.ListOptions) (*federation.ClusterList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error)
 | 
			
		||||
	ClusterExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -138,3 +139,15 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched cluster.
 | 
			
		||||
func (c *clusters) Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error) {
 | 
			
		||||
	result = &federation.Cluster{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("clusters").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -106,3 +106,13 @@ func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(clustersResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched cluster.
 | 
			
		||||
func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(clustersResource, name, data), &federation.Cluster{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*federation.Cluster), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(servicesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &v1.Service{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Service), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type ServiceInterface interface {
 | 
			
		||||
	Get(name string) (*v1.Service, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.ServiceList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error)
 | 
			
		||||
	ServiceExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *services) Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error) {
 | 
			
		||||
	result = &v1.Service{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("services").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type ClusterInterface interface {
 | 
			
		||||
	Get(name string) (*v1alpha1.Cluster, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1alpha1.ClusterList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1alpha1.Cluster, err error)
 | 
			
		||||
	ClusterExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -138,3 +139,15 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched cluster.
 | 
			
		||||
func (c *clusters) Patch(name string, pt api.PatchType, data []byte) (result *v1alpha1.Cluster, err error) {
 | 
			
		||||
	result = &v1alpha1.Cluster{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("clusters").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -106,3 +106,13 @@ func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(clustersResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched cluster.
 | 
			
		||||
func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte) (result *v1alpha1.Cluster, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(clustersResource, name, data), &v1alpha1.Cluster{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1alpha1.Cluster), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interf
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched horizontalPodAutoscaler.
 | 
			
		||||
func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte) (result *autoscaling.HorizontalPodAutoscaler, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(horizontalpodautoscalersResource, c.ns, name, data), &autoscaling.HorizontalPodAutoscaler{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*autoscaling.HorizontalPodAutoscaler), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type HorizontalPodAutoscalerInterface interface {
 | 
			
		||||
	Get(name string) (*autoscaling.HorizontalPodAutoscaler, error)
 | 
			
		||||
	List(opts api.ListOptions) (*autoscaling.HorizontalPodAutoscalerList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *autoscaling.HorizontalPodAutoscaler, err error)
 | 
			
		||||
	HorizontalPodAutoscalerExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface,
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched horizontalPodAutoscaler.
 | 
			
		||||
func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte) (result *autoscaling.HorizontalPodAutoscaler, err error) {
 | 
			
		||||
	result = &autoscaling.HorizontalPodAutoscaler{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("horizontalpodautoscalers").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(jobsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched job.
 | 
			
		||||
func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(jobsResource, c.ns, name, data), &batch.Job{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*batch.Job), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeScheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(scheduledjobsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched scheduledJob.
 | 
			
		||||
func (c *FakeScheduledJobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.ScheduledJob, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(scheduledjobsResource, c.ns, name, data), &batch.ScheduledJob{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*batch.ScheduledJob), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type JobInterface interface {
 | 
			
		||||
	Get(name string) (*batch.Job, error)
 | 
			
		||||
	List(opts api.ListOptions) (*batch.JobList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error)
 | 
			
		||||
	JobExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched job.
 | 
			
		||||
func (c *jobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error) {
 | 
			
		||||
	result = &batch.Job{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("jobs").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type ScheduledJobInterface interface {
 | 
			
		||||
	Get(name string) (*batch.ScheduledJob, error)
 | 
			
		||||
	List(opts api.ListOptions) (*batch.ScheduledJobList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *batch.ScheduledJob, err error)
 | 
			
		||||
	ScheduledJobExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *scheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched scheduledJob.
 | 
			
		||||
func (c *scheduledJobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.ScheduledJob, err error) {
 | 
			
		||||
	result = &batch.ScheduledJob{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("scheduledjobs").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type ComponentStatusInterface interface {
 | 
			
		||||
	Get(name string) (*api.ComponentStatus, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ComponentStatusList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.ComponentStatus, err error)
 | 
			
		||||
	ComponentStatusExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -124,3 +125,15 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched componentStatus.
 | 
			
		||||
func (c *componentStatuses) Patch(name string, pt api.PatchType, data []byte) (result *api.ComponentStatus, err error) {
 | 
			
		||||
	result = &api.ComponentStatus{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("componentstatuses").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type ConfigMapInterface interface {
 | 
			
		||||
	Get(name string) (*api.ConfigMap, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ConfigMapList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error)
 | 
			
		||||
	ConfigMapExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched configMap.
 | 
			
		||||
func (c *configMaps) Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error) {
 | 
			
		||||
	result = &api.ConfigMap{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("configmaps").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type EndpointsInterface interface {
 | 
			
		||||
	Get(name string) (*api.Endpoints, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.EndpointsList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Endpoints, err error)
 | 
			
		||||
	EndpointsExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched endpoints.
 | 
			
		||||
func (c *endpoints) Patch(name string, pt api.PatchType, data []byte) (result *api.Endpoints, err error) {
 | 
			
		||||
	result = &api.Endpoints{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("endpoints").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type EventInterface interface {
 | 
			
		||||
	Get(name string) (*api.Event, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.EventList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Event, err error)
 | 
			
		||||
	EventExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched event.
 | 
			
		||||
func (c *events) Patch(name string, pt api.PatchType, data []byte) (result *api.Event, err error) {
 | 
			
		||||
	result = &api.Event{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("events").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@ type EventExpansion interface {
 | 
			
		||||
	CreateWithEventNamespace(event *api.Event) (*api.Event, error)
 | 
			
		||||
	// UpdateWithEventNamespace is the same as a Update, except that it sends the request to the event.Namespace.
 | 
			
		||||
	UpdateWithEventNamespace(event *api.Event) (*api.Event, error)
 | 
			
		||||
	Patch(event *api.Event, data []byte) (*api.Event, error)
 | 
			
		||||
	PatchWithEventNamespace(event *api.Event, data []byte) (*api.Event, error)
 | 
			
		||||
	// Search finds events about the specified object
 | 
			
		||||
	Search(objOrRef runtime.Object) (*api.EventList, error)
 | 
			
		||||
	// Returns the appropriate field selector based on the API version being used to communicate with the server.
 | 
			
		||||
@@ -73,11 +73,15 @@ func (e *events) UpdateWithEventNamespace(event *api.Event) (*api.Event, error)
 | 
			
		||||
	return result, err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch modifies an existing event. It returns the copy of the event that the server returns, or an
 | 
			
		||||
// error. The namespace and name of the target event is deduced from the incompleteEvent. The
 | 
			
		||||
// namespace must either match this event client's namespace, or this event client must have been
 | 
			
		||||
// PatchWithEventNamespace modifies an existing event. It returns the copy of
 | 
			
		||||
// the event that the server returns, or an error. The namespace and name of the
 | 
			
		||||
// target event is deduced from the incompleteEvent. The namespace must either
 | 
			
		||||
// match this event client's namespace, or this event client must have been
 | 
			
		||||
// created with the "" namespace.
 | 
			
		||||
func (e *events) Patch(incompleteEvent *api.Event, data []byte) (*api.Event, error) {
 | 
			
		||||
func (e *events) PatchWithEventNamespace(incompleteEvent *api.Event, data []byte) (*api.Event, error) {
 | 
			
		||||
	if e.ns != "" && incompleteEvent.Namespace != e.ns {
 | 
			
		||||
		return nil, fmt.Errorf("can't patch an event with namespace '%v' in namespace '%v'", incompleteEvent.Namespace, e.ns)
 | 
			
		||||
	}
 | 
			
		||||
	result := &api.Event{}
 | 
			
		||||
	err := e.client.Patch(api.StrategicMergePatchType).
 | 
			
		||||
		NamespaceIfScoped(incompleteEvent.Namespace, len(incompleteEvent.Namespace) > 0).
 | 
			
		||||
@@ -153,5 +157,5 @@ func (e *EventSinkImpl) Update(event *api.Event) (*api.Event, error) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (e *EventSinkImpl) Patch(event *api.Event, data []byte) (*api.Event, error) {
 | 
			
		||||
	return e.Interface.Patch(event, data)
 | 
			
		||||
	return e.Interface.PatchWithEventNamespace(event, data)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -96,3 +96,13 @@ func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, er
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(componentstatusesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched componentStatus.
 | 
			
		||||
func (c *FakeComponentStatuses) Patch(name string, pt api.PatchType, data []byte) (result *api.ComponentStatus, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(componentstatusesResource, name, data), &api.ComponentStatus{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.ComponentStatus), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(configmapsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched configMap.
 | 
			
		||||
func (c *FakeConfigMaps) Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(configmapsResource, c.ns, name, data), &api.ConfigMap{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.ConfigMap), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(endpointsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched endpoints.
 | 
			
		||||
func (c *FakeEndpoints) Patch(name string, pt api.PatchType, data []byte) (result *api.Endpoints, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(endpointsResource, c.ns, name, data), &api.Endpoints{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Endpoints), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(eventsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched event.
 | 
			
		||||
func (c *FakeEvents) Patch(name string, pt api.PatchType, data []byte) (result *api.Event, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(eventsResource, c.ns, name, data), &api.Event{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Event), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -50,11 +50,11 @@ func (c *FakeEvents) UpdateWithEventNamespace(event *api.Event) (*api.Event, err
 | 
			
		||||
	return obj.(*api.Event), err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch patches an existing event. Returns the copy of the event the server returns, or an error.
 | 
			
		||||
func (c *FakeEvents) Patch(event *api.Event, data []byte) (*api.Event, error) {
 | 
			
		||||
	action := core.NewRootPatchAction(eventsResource, event)
 | 
			
		||||
// PatchWithEventNamespace patches an existing event. Returns the copy of the event the server returns, or an error.
 | 
			
		||||
func (c *FakeEvents) PatchWithEventNamespace(event *api.Event, data []byte) (*api.Event, error) {
 | 
			
		||||
	action := core.NewRootPatchAction(eventsResource, event.Name, data)
 | 
			
		||||
	if c.ns != "" {
 | 
			
		||||
		action = core.NewPatchAction(eventsResource, c.ns, event)
 | 
			
		||||
		action = core.NewPatchAction(eventsResource, c.ns, event.Name, data)
 | 
			
		||||
	}
 | 
			
		||||
	obj, err := c.Fake.Invokes(action, event)
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(limitrangesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched limitRange.
 | 
			
		||||
func (c *FakeLimitRanges) Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(limitrangesResource, c.ns, name, data), &api.LimitRange{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.LimitRange), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -105,3 +105,13 @@ func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(namespacesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched namespace.
 | 
			
		||||
func (c *FakeNamespaces) Patch(name string, pt api.PatchType, data []byte) (result *api.Namespace, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(namespacesResource, name, data), &api.Namespace{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Namespace), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -105,3 +105,13 @@ func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(nodesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched node.
 | 
			
		||||
func (c *FakeNodes) Patch(name string, pt api.PatchType, data []byte) (result *api.Node, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(nodesResource, name, data), &api.Node{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Node), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -105,3 +105,13 @@ func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, er
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(persistentvolumesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched persistentVolume.
 | 
			
		||||
func (c *FakePersistentVolumes) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolume, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(persistentvolumesResource, name, data), &api.PersistentVolume{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.PersistentVolume), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -113,3 +113,14 @@ func (c *FakePersistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interfac
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(persistentvolumeclaimsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched persistentVolumeClaim.
 | 
			
		||||
func (c *FakePersistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(persistentvolumeclaimsResource, c.ns, name, data), &api.PersistentVolumeClaim{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.PersistentVolumeClaim), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -113,3 +113,14 @@ func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(podsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched pod.
 | 
			
		||||
func (c *FakePods) Patch(name string, pt api.PatchType, data []byte) (result *api.Pod, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(podsResource, c.ns, name, data), &api.Pod{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Pod), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(podtemplatesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched podTemplate.
 | 
			
		||||
func (c *FakePodTemplates) Patch(name string, pt api.PatchType, data []byte) (result *api.PodTemplate, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(podtemplatesResource, c.ns, name, data), &api.PodTemplate{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.PodTemplate), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -113,3 +113,14 @@ func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interfac
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(replicationcontrollersResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched replicationController.
 | 
			
		||||
func (c *FakeReplicationControllers) Patch(name string, pt api.PatchType, data []byte) (result *api.ReplicationController, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(replicationcontrollersResource, c.ns, name, data), &api.ReplicationController{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.ReplicationController), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -113,3 +113,14 @@ func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(resourcequotasResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched resourceQuota.
 | 
			
		||||
func (c *FakeResourceQuotas) Patch(name string, pt api.PatchType, data []byte) (result *api.ResourceQuota, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(resourcequotasResource, c.ns, name, data), &api.ResourceQuota{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.ResourceQuota), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(secretsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched secret.
 | 
			
		||||
func (c *FakeSecrets) Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(secretsResource, c.ns, name, data), &api.Secret{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Secret), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -113,3 +113,14 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(servicesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &api.Service{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.Service), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,3 +103,14 @@ func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, erro
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(serviceaccountsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched serviceAccount.
 | 
			
		||||
func (c *FakeServiceAccounts) Patch(name string, pt api.PatchType, data []byte) (result *api.ServiceAccount, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(serviceaccountsResource, c.ns, name, data), &api.ServiceAccount{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*api.ServiceAccount), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type LimitRangeInterface interface {
 | 
			
		||||
	Get(name string) (*api.LimitRange, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.LimitRangeList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error)
 | 
			
		||||
	LimitRangeExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched limitRange.
 | 
			
		||||
func (c *limitRanges) Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error) {
 | 
			
		||||
	result = &api.LimitRange{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("limitranges").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type NamespaceInterface interface {
 | 
			
		||||
	Get(name string) (*api.Namespace, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.NamespaceList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Namespace, err error)
 | 
			
		||||
	NamespaceExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -137,3 +138,15 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched namespace.
 | 
			
		||||
func (c *namespaces) Patch(name string, pt api.PatchType, data []byte) (result *api.Namespace, err error) {
 | 
			
		||||
	result = &api.Namespace{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("namespaces").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type NodeInterface interface {
 | 
			
		||||
	Get(name string) (*api.Node, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.NodeList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Node, err error)
 | 
			
		||||
	NodeExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -137,3 +138,15 @@ func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched node.
 | 
			
		||||
func (c *nodes) Patch(name string, pt api.PatchType, data []byte) (result *api.Node, err error) {
 | 
			
		||||
	result = &api.Node{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("nodes").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type PersistentVolumeInterface interface {
 | 
			
		||||
	Get(name string) (*api.PersistentVolume, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.PersistentVolumeList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolume, err error)
 | 
			
		||||
	PersistentVolumeExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -137,3 +138,15 @@ func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched persistentVolume.
 | 
			
		||||
func (c *persistentVolumes) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolume, err error) {
 | 
			
		||||
	result = &api.PersistentVolume{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("persistentvolumes").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type PersistentVolumeClaimInterface interface {
 | 
			
		||||
	Get(name string) (*api.PersistentVolumeClaim, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.PersistentVolumeClaimList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error)
 | 
			
		||||
	PersistentVolumeClaimExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -147,3 +148,16 @@ func (c *persistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, e
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched persistentVolumeClaim.
 | 
			
		||||
func (c *persistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error) {
 | 
			
		||||
	result = &api.PersistentVolumeClaim{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("persistentvolumeclaims").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type PodInterface interface {
 | 
			
		||||
	Get(name string) (*api.Pod, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.PodList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Pod, err error)
 | 
			
		||||
	PodExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -147,3 +148,16 @@ func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched pod.
 | 
			
		||||
func (c *pods) Patch(name string, pt api.PatchType, data []byte) (result *api.Pod, err error) {
 | 
			
		||||
	result = &api.Pod{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("pods").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type PodTemplateInterface interface {
 | 
			
		||||
	Get(name string) (*api.PodTemplate, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.PodTemplateList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.PodTemplate, err error)
 | 
			
		||||
	PodTemplateExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched podTemplate.
 | 
			
		||||
func (c *podTemplates) Patch(name string, pt api.PatchType, data []byte) (result *api.PodTemplate, err error) {
 | 
			
		||||
	result = &api.PodTemplate{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("podtemplates").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ReplicationControllerInterface interface {
 | 
			
		||||
	Get(name string) (*api.ReplicationController, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ReplicationControllerList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.ReplicationController, err error)
 | 
			
		||||
	ReplicationControllerExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -147,3 +148,16 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched replicationController.
 | 
			
		||||
func (c *replicationControllers) Patch(name string, pt api.PatchType, data []byte) (result *api.ReplicationController, err error) {
 | 
			
		||||
	result = &api.ReplicationController{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("replicationcontrollers").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ResourceQuotaInterface interface {
 | 
			
		||||
	Get(name string) (*api.ResourceQuota, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ResourceQuotaList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.ResourceQuota, err error)
 | 
			
		||||
	ResourceQuotaExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -147,3 +148,16 @@ func (c *resourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched resourceQuota.
 | 
			
		||||
func (c *resourceQuotas) Patch(name string, pt api.PatchType, data []byte) (result *api.ResourceQuota, err error) {
 | 
			
		||||
	result = &api.ResourceQuota{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("resourcequotas").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type SecretInterface interface {
 | 
			
		||||
	Get(name string) (*api.Secret, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.SecretList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error)
 | 
			
		||||
	SecretExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched secret.
 | 
			
		||||
func (c *secrets) Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error) {
 | 
			
		||||
	result = &api.Secret{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("secrets").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ServiceInterface interface {
 | 
			
		||||
	Get(name string) (*api.Service, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ServiceList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error)
 | 
			
		||||
	ServiceExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -147,3 +148,16 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *services) Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) {
 | 
			
		||||
	result = &api.Service{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("services").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ type ServiceAccountInterface interface {
 | 
			
		||||
	Get(name string) (*api.ServiceAccount, error)
 | 
			
		||||
	List(opts api.ListOptions) (*api.ServiceAccountList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *api.ServiceAccount, err error)
 | 
			
		||||
	ServiceAccountExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -133,3 +134,16 @@ func (c *serviceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched serviceAccount.
 | 
			
		||||
func (c *serviceAccounts) Patch(name string, pt api.PatchType, data []byte) (result *api.ServiceAccount, err error) {
 | 
			
		||||
	result = &api.ServiceAccount{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("serviceaccounts").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type DaemonSetInterface interface {
 | 
			
		||||
	Get(name string) (*extensions.DaemonSet, error)
 | 
			
		||||
	List(opts api.ListOptions) (*extensions.DaemonSetList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *extensions.DaemonSet, err error)
 | 
			
		||||
	DaemonSetExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *daemonSets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched daemonSet.
 | 
			
		||||
func (c *daemonSets) Patch(name string, pt api.PatchType, data []byte) (result *extensions.DaemonSet, err error) {
 | 
			
		||||
	result = &extensions.DaemonSet{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("daemonsets").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type DeploymentInterface interface {
 | 
			
		||||
	Get(name string) (*extensions.Deployment, error)
 | 
			
		||||
	List(opts api.ListOptions) (*extensions.DeploymentList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error)
 | 
			
		||||
	DeploymentExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *deployments) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched deployment.
 | 
			
		||||
func (c *deployments) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error) {
 | 
			
		||||
	result = &extensions.Deployment{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("deployments").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeDaemonSets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(daemonsetsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched daemonSet.
 | 
			
		||||
func (c *FakeDaemonSets) Patch(name string, pt api.PatchType, data []byte) (result *extensions.DaemonSet, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(daemonsetsResource, c.ns, name, data), &extensions.DaemonSet{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*extensions.DaemonSet), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeDeployments) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(deploymentsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched deployment.
 | 
			
		||||
func (c *FakeDeployments) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(deploymentsResource, c.ns, name, data), &extensions.Deployment{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*extensions.Deployment), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeIngresses) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(ingressesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched ingress.
 | 
			
		||||
func (c *FakeIngresses) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Ingress, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(ingressesResource, c.ns, name, data), &extensions.Ingress{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*extensions.Ingress), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -97,3 +97,13 @@ func (c *FakePodSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface,
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(podsecuritypoliciesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched podSecurityPolicy.
 | 
			
		||||
func (c *FakePodSecurityPolicies) Patch(name string, pt api.PatchType, data []byte) (result *extensions.PodSecurityPolicy, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(podsecuritypoliciesResource, name, data), &extensions.PodSecurityPolicy{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*extensions.PodSecurityPolicy), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeReplicaSets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(replicasetsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched replicaSet.
 | 
			
		||||
func (c *FakeReplicaSets) Patch(name string, pt api.PatchType, data []byte) (result *extensions.ReplicaSet, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(replicasetsResource, c.ns, name, data), &extensions.ReplicaSet{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*extensions.ReplicaSet), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -97,3 +97,13 @@ func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface,
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(thirdpartyresourcesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched thirdPartyResource.
 | 
			
		||||
func (c *FakeThirdPartyResources) Patch(name string, pt api.PatchType, data []byte) (result *extensions.ThirdPartyResource, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(thirdpartyresourcesResource, name, data), &extensions.ThirdPartyResource{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*extensions.ThirdPartyResource), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type IngressInterface interface {
 | 
			
		||||
	Get(name string) (*extensions.Ingress, error)
 | 
			
		||||
	List(opts api.ListOptions) (*extensions.IngressList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *extensions.Ingress, err error)
 | 
			
		||||
	IngressExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched ingress.
 | 
			
		||||
func (c *ingresses) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Ingress, err error) {
 | 
			
		||||
	result = &extensions.Ingress{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("ingresses").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type PodSecurityPolicyInterface interface {
 | 
			
		||||
	Get(name string) (*extensions.PodSecurityPolicy, error)
 | 
			
		||||
	List(opts api.ListOptions) (*extensions.PodSecurityPolicyList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *extensions.PodSecurityPolicy, err error)
 | 
			
		||||
	PodSecurityPolicyExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -125,3 +126,15 @@ func (c *podSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface, erro
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched podSecurityPolicy.
 | 
			
		||||
func (c *podSecurityPolicies) Patch(name string, pt api.PatchType, data []byte) (result *extensions.PodSecurityPolicy, err error) {
 | 
			
		||||
	result = &extensions.PodSecurityPolicy{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("podsecuritypolicies").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type ReplicaSetInterface interface {
 | 
			
		||||
	Get(name string) (*extensions.ReplicaSet, error)
 | 
			
		||||
	List(opts api.ListOptions) (*extensions.ReplicaSetList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *extensions.ReplicaSet, err error)
 | 
			
		||||
	ReplicaSetExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched replicaSet.
 | 
			
		||||
func (c *replicaSets) Patch(name string, pt api.PatchType, data []byte) (result *extensions.ReplicaSet, err error) {
 | 
			
		||||
	result = &extensions.ReplicaSet{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("replicasets").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ThirdPartyResourceInterface interface {
 | 
			
		||||
	Get(name string) (*extensions.ThirdPartyResource, error)
 | 
			
		||||
	List(opts api.ListOptions) (*extensions.ThirdPartyResourceList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *extensions.ThirdPartyResource, err error)
 | 
			
		||||
	ThirdPartyResourceExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -125,3 +126,15 @@ func (c *thirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, erro
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched thirdPartyResource.
 | 
			
		||||
func (c *thirdPartyResources) Patch(name string, pt api.PatchType, data []byte) (result *extensions.ThirdPartyResource, err error) {
 | 
			
		||||
	result = &extensions.ThirdPartyResource{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("thirdpartyresources").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ClusterRoleInterface interface {
 | 
			
		||||
	Get(name string) (*rbac.ClusterRole, error)
 | 
			
		||||
	List(opts api.ListOptions) (*rbac.ClusterRoleList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRole, err error)
 | 
			
		||||
	ClusterRoleExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -125,3 +126,15 @@ func (c *clusterRoles) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched clusterRole.
 | 
			
		||||
func (c *clusterRoles) Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRole, err error) {
 | 
			
		||||
	result = &rbac.ClusterRole{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("clusterroles").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ClusterRoleBindingInterface interface {
 | 
			
		||||
	Get(name string) (*rbac.ClusterRoleBinding, error)
 | 
			
		||||
	List(opts api.ListOptions) (*rbac.ClusterRoleBindingList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRoleBinding, err error)
 | 
			
		||||
	ClusterRoleBindingExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -125,3 +126,15 @@ func (c *clusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, erro
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched clusterRoleBinding.
 | 
			
		||||
func (c *clusterRoleBindings) Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRoleBinding, err error) {
 | 
			
		||||
	result = &rbac.ClusterRoleBinding{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("clusterrolebindings").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -97,3 +97,13 @@ func (c *FakeClusterRoles) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(clusterrolesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched clusterRole.
 | 
			
		||||
func (c *FakeClusterRoles) Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRole, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(clusterrolesResource, name, data), &rbac.ClusterRole{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*rbac.ClusterRole), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -97,3 +97,13 @@ func (c *FakeClusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface,
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(clusterrolebindingsResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched clusterRoleBinding.
 | 
			
		||||
func (c *FakeClusterRoleBindings) Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRoleBinding, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(clusterrolebindingsResource, name, data), &rbac.ClusterRoleBinding{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*rbac.ClusterRoleBinding), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeRoles) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(rolesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched role.
 | 
			
		||||
func (c *FakeRoles) Patch(name string, pt api.PatchType, data []byte) (result *rbac.Role, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(rolesResource, c.ns, name, data), &rbac.Role{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*rbac.Role), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(rolebindingsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched roleBinding.
 | 
			
		||||
func (c *FakeRoleBindings) Patch(name string, pt api.PatchType, data []byte) (result *rbac.RoleBinding, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(rolebindingsResource, c.ns, name, data), &rbac.RoleBinding{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*rbac.RoleBinding), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type RoleInterface interface {
 | 
			
		||||
	Get(name string) (*rbac.Role, error)
 | 
			
		||||
	List(opts api.ListOptions) (*rbac.RoleList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *rbac.Role, err error)
 | 
			
		||||
	RoleExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -134,3 +135,16 @@ func (c *roles) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched role.
 | 
			
		||||
func (c *roles) Patch(name string, pt api.PatchType, data []byte) (result *rbac.Role, err error) {
 | 
			
		||||
	result = &rbac.Role{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("roles").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type RoleBindingInterface interface {
 | 
			
		||||
	Get(name string) (*rbac.RoleBinding, error)
 | 
			
		||||
	List(opts api.ListOptions) (*rbac.RoleBindingList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *rbac.RoleBinding, err error)
 | 
			
		||||
	RoleBindingExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -134,3 +135,16 @@ func (c *roleBindings) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched roleBinding.
 | 
			
		||||
func (c *roleBindings) Patch(name string, pt api.PatchType, data []byte) (result *rbac.RoleBinding, err error) {
 | 
			
		||||
	result = &rbac.RoleBinding{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("rolebindings").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interf
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched horizontalPodAutoscaler.
 | 
			
		||||
func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte) (result *v1.HorizontalPodAutoscaler, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(horizontalpodautoscalersResource, c.ns, name, data), &v1.HorizontalPodAutoscaler{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.HorizontalPodAutoscaler), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type HorizontalPodAutoscalerInterface interface {
 | 
			
		||||
	Get(name string) (*v1.HorizontalPodAutoscaler, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.HorizontalPodAutoscalerList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.HorizontalPodAutoscaler, err error)
 | 
			
		||||
	HorizontalPodAutoscalerExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface,
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched horizontalPodAutoscaler.
 | 
			
		||||
func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte) (result *v1.HorizontalPodAutoscaler, err error) {
 | 
			
		||||
	result = &v1.HorizontalPodAutoscaler{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("horizontalpodautoscalers").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(jobsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched job.
 | 
			
		||||
func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte) (result *v1.Job, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(jobsResource, c.ns, name, data), &v1.Job{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Job), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type JobInterface interface {
 | 
			
		||||
	Get(name string) (*v1.Job, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.JobList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.Job, err error)
 | 
			
		||||
	JobExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,3 +149,16 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched job.
 | 
			
		||||
func (c *jobs) Patch(name string, pt api.PatchType, data []byte) (result *v1.Job, err error) {
 | 
			
		||||
	result = &v1.Job{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("jobs").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ComponentStatusInterface interface {
 | 
			
		||||
	Get(name string) (*v1.ComponentStatus, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.ComponentStatusList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.ComponentStatus, err error)
 | 
			
		||||
	ComponentStatusExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -125,3 +126,15 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched componentStatus.
 | 
			
		||||
func (c *componentStatuses) Patch(name string, pt api.PatchType, data []byte) (result *v1.ComponentStatus, err error) {
 | 
			
		||||
	result = &v1.ComponentStatus{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("componentstatuses").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ConfigMapInterface interface {
 | 
			
		||||
	Get(name string) (*v1.ConfigMap, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.ConfigMapList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.ConfigMap, err error)
 | 
			
		||||
	ConfigMapExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -134,3 +135,16 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched configMap.
 | 
			
		||||
func (c *configMaps) Patch(name string, pt api.PatchType, data []byte) (result *v1.ConfigMap, err error) {
 | 
			
		||||
	result = &v1.ConfigMap{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("configmaps").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type EndpointsInterface interface {
 | 
			
		||||
	Get(name string) (*v1.Endpoints, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.EndpointsList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.Endpoints, err error)
 | 
			
		||||
	EndpointsExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -134,3 +135,16 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched endpoints.
 | 
			
		||||
func (c *endpoints) Patch(name string, pt api.PatchType, data []byte) (result *v1.Endpoints, err error) {
 | 
			
		||||
	result = &v1.Endpoints{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("endpoints").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type EventInterface interface {
 | 
			
		||||
	Get(name string) (*v1.Event, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.EventList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.Event, err error)
 | 
			
		||||
	EventExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -134,3 +135,16 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched event.
 | 
			
		||||
func (c *events) Patch(name string, pt api.PatchType, data []byte) (result *v1.Event, err error) {
 | 
			
		||||
	result = &v1.Event{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("events").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ type EventExpansion interface {
 | 
			
		||||
	CreateWithEventNamespace(event *v1.Event) (*v1.Event, error)
 | 
			
		||||
	// UpdateWithEventNamespace is the same as a Update, except that it sends the request to the event.Namespace.
 | 
			
		||||
	UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error)
 | 
			
		||||
	Patch(event *v1.Event, data []byte) (*v1.Event, error)
 | 
			
		||||
	PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.Event, error)
 | 
			
		||||
	// Search finds events about the specified object
 | 
			
		||||
	Search(objOrRef runtime.Object) (*v1.EventList, error)
 | 
			
		||||
	// Returns the appropriate field selector based on the API version being used to communicate with the server.
 | 
			
		||||
@@ -74,11 +74,15 @@ func (e *events) UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error) {
 | 
			
		||||
	return result, err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch modifies an existing event. It returns the copy of the event that the server returns, or an
 | 
			
		||||
// error. The namespace and name of the target event is deduced from the incompleteEvent. The
 | 
			
		||||
// namespace must either match this event client's namespace, or this event client must have been
 | 
			
		||||
// PatchWithEventNamespace modifies an existing event. It returns the copy of
 | 
			
		||||
// the event that the server returns, or an error. The namespace and name of the
 | 
			
		||||
// target event is deduced from the incompleteEvent. The namespace must either
 | 
			
		||||
// match this event client's namespace, or this event client must have been
 | 
			
		||||
// created with the "" namespace.
 | 
			
		||||
func (e *events) Patch(incompleteEvent *v1.Event, data []byte) (*v1.Event, error) {
 | 
			
		||||
func (e *events) PatchWithEventNamespace(incompleteEvent *v1.Event, data []byte) (*v1.Event, error) {
 | 
			
		||||
	if e.ns != "" && incompleteEvent.Namespace != e.ns {
 | 
			
		||||
		return nil, fmt.Errorf("can't patch an event with namespace '%v' in namespace '%v'", incompleteEvent.Namespace, e.ns)
 | 
			
		||||
	}
 | 
			
		||||
	result := &v1.Event{}
 | 
			
		||||
	err := e.client.Patch(api.StrategicMergePatchType).
 | 
			
		||||
		NamespaceIfScoped(incompleteEvent.Namespace, len(incompleteEvent.Namespace) > 0).
 | 
			
		||||
@@ -154,5 +158,5 @@ func (e *EventSinkImpl) Update(event *v1.Event) (*v1.Event, error) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (e *EventSinkImpl) Patch(event *v1.Event, data []byte) (*v1.Event, error) {
 | 
			
		||||
	return e.Interface.Patch(event, data)
 | 
			
		||||
	return e.Interface.PatchWithEventNamespace(event, data)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -97,3 +97,13 @@ func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, er
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(componentstatusesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched componentStatus.
 | 
			
		||||
func (c *FakeComponentStatuses) Patch(name string, pt api.PatchType, data []byte) (result *v1.ComponentStatus, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(componentstatusesResource, name, data), &v1.ComponentStatus{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.ComponentStatus), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(configmapsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched configMap.
 | 
			
		||||
func (c *FakeConfigMaps) Patch(name string, pt api.PatchType, data []byte) (result *v1.ConfigMap, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(configmapsResource, c.ns, name, data), &v1.ConfigMap{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.ConfigMap), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(endpointsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched endpoints.
 | 
			
		||||
func (c *FakeEndpoints) Patch(name string, pt api.PatchType, data []byte) (result *v1.Endpoints, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(endpointsResource, c.ns, name, data), &v1.Endpoints{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Endpoints), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(eventsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched event.
 | 
			
		||||
func (c *FakeEvents) Patch(name string, pt api.PatchType, data []byte) (result *v1.Event, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(eventsResource, c.ns, name, data), &v1.Event{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Event), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -51,11 +51,11 @@ func (c *FakeEvents) UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error
 | 
			
		||||
	return obj.(*v1.Event), err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch patches an existing event. Returns the copy of the event the server returns, or an error.
 | 
			
		||||
func (c *FakeEvents) Patch(event *v1.Event, data []byte) (*v1.Event, error) {
 | 
			
		||||
	action := core.NewRootPatchAction(eventsResource, event)
 | 
			
		||||
// PatchWithEventNamespace patches an existing event. Returns the copy of the event the server returns, or an error.
 | 
			
		||||
func (c *FakeEvents) PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.Event, error) {
 | 
			
		||||
	action := core.NewRootPatchAction(eventsResource, event.Name, data)
 | 
			
		||||
	if c.ns != "" {
 | 
			
		||||
		action = core.NewPatchAction(eventsResource, c.ns, event)
 | 
			
		||||
		action = core.NewPatchAction(eventsResource, c.ns, event.Name, data)
 | 
			
		||||
	}
 | 
			
		||||
	obj, err := c.Fake.Invokes(action, event)
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(limitrangesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched limitRange.
 | 
			
		||||
func (c *FakeLimitRanges) Patch(name string, pt api.PatchType, data []byte) (result *v1.LimitRange, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(limitrangesResource, c.ns, name, data), &v1.LimitRange{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.LimitRange), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -106,3 +106,13 @@ func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(namespacesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched namespace.
 | 
			
		||||
func (c *FakeNamespaces) Patch(name string, pt api.PatchType, data []byte) (result *v1.Namespace, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(namespacesResource, name, data), &v1.Namespace{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Namespace), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -106,3 +106,13 @@ func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(nodesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched node.
 | 
			
		||||
func (c *FakeNodes) Patch(name string, pt api.PatchType, data []byte) (result *v1.Node, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(nodesResource, name, data), &v1.Node{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Node), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -106,3 +106,13 @@ func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, er
 | 
			
		||||
	return c.Fake.
 | 
			
		||||
		InvokesWatch(core.NewRootWatchAction(persistentvolumesResource, opts))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched persistentVolume.
 | 
			
		||||
func (c *FakePersistentVolumes) Patch(name string, pt api.PatchType, data []byte) (result *v1.PersistentVolume, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewRootPatchAction(persistentvolumesResource, name, data), &v1.PersistentVolume{})
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.PersistentVolume), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(podsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched pod.
 | 
			
		||||
func (c *FakePods) Patch(name string, pt api.PatchType, data []byte) (result *v1.Pod, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(podsResource, c.ns, name, data), &v1.Pod{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Pod), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(podtemplatesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched podTemplate.
 | 
			
		||||
func (c *FakePodTemplates) Patch(name string, pt api.PatchType, data []byte) (result *v1.PodTemplate, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(podtemplatesResource, c.ns, name, data), &v1.PodTemplate{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.PodTemplate), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interfac
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(replicationcontrollersResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched replicationController.
 | 
			
		||||
func (c *FakeReplicationControllers) Patch(name string, pt api.PatchType, data []byte) (result *v1.ReplicationController, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(replicationcontrollersResource, c.ns, name, data), &v1.ReplicationController{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.ReplicationController), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(resourcequotasResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched resourceQuota.
 | 
			
		||||
func (c *FakeResourceQuotas) Patch(name string, pt api.PatchType, data []byte) (result *v1.ResourceQuota, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(resourcequotasResource, c.ns, name, data), &v1.ResourceQuota{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.ResourceQuota), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(secretsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched secret.
 | 
			
		||||
func (c *FakeSecrets) Patch(name string, pt api.PatchType, data []byte) (result *v1.Secret, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(secretsResource, c.ns, name, data), &v1.Secret{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Secret), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,3 +114,14 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(servicesResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched service.
 | 
			
		||||
func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &v1.Service{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.Service), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,3 +104,14 @@ func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, erro
 | 
			
		||||
		InvokesWatch(core.NewWatchAction(serviceaccountsResource, c.ns, opts))
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched serviceAccount.
 | 
			
		||||
func (c *FakeServiceAccounts) Patch(name string, pt api.PatchType, data []byte) (result *v1.ServiceAccount, err error) {
 | 
			
		||||
	obj, err := c.Fake.
 | 
			
		||||
		Invokes(core.NewPatchAction(serviceaccountsResource, c.ns, name, data), &v1.ServiceAccount{})
 | 
			
		||||
 | 
			
		||||
	if obj == nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return obj.(*v1.ServiceAccount), err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type LimitRangeInterface interface {
 | 
			
		||||
	Get(name string) (*v1.LimitRange, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.LimitRangeList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.LimitRange, err error)
 | 
			
		||||
	LimitRangeExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -134,3 +135,16 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched limitRange.
 | 
			
		||||
func (c *limitRanges) Patch(name string, pt api.PatchType, data []byte) (result *v1.LimitRange, err error) {
 | 
			
		||||
	result = &v1.LimitRange{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Namespace(c.ns).
 | 
			
		||||
		Resource("limitranges").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ type NamespaceInterface interface {
 | 
			
		||||
	Get(name string) (*v1.Namespace, error)
 | 
			
		||||
	List(opts api.ListOptions) (*v1.NamespaceList, error)
 | 
			
		||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
			
		||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.Namespace, err error)
 | 
			
		||||
	NamespaceExpansion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -138,3 +139,15 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
			
		||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
			
		||||
		Watch()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Patch applies the patch and returns the patched namespace.
 | 
			
		||||
func (c *namespaces) Patch(name string, pt api.PatchType, data []byte) (result *v1.Namespace, err error) {
 | 
			
		||||
	result = &v1.Namespace{}
 | 
			
		||||
	err = c.client.Patch(pt).
 | 
			
		||||
		Resource("namespaces").
 | 
			
		||||
		Name(name).
 | 
			
		||||
		Body(data).
 | 
			
		||||
		Do().
 | 
			
		||||
		Into(result)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user