Commit c2fb3910 authored by Chao Xu's avatar Chao Xu

generated changes

parent dc2e12d2
...@@ -23,7 +23,6 @@ import ( ...@@ -23,7 +23,6 @@ import (
core "k8s.io/kubernetes/pkg/client/testing/core" core "k8s.io/kubernetes/pkg/client/testing/core"
labels "k8s.io/kubernetes/pkg/labels" labels "k8s.io/kubernetes/pkg/labels"
watch "k8s.io/kubernetes/pkg/watch" watch "k8s.io/kubernetes/pkg/watch"
"path"
) )
// FakeTestTypes implements TestTypeInterface // FakeTestTypes implements TestTypeInterface
...@@ -119,7 +118,7 @@ func (c *FakeTestTypes) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -119,7 +118,7 @@ func (c *FakeTestTypes) Watch(opts api.ListOptions) (watch.Interface, error) {
// Patch applies the patch and returns the patched testType. // Patch applies the patch and returns the patched testType.
func (c *FakeTestTypes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *testgroup_k8s_io.TestType, err error) { func (c *FakeTestTypes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *testgroup_k8s_io.TestType, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchSubresourceAction(testtypesResource, c.ns, name, data, path.Join(subresources...)), &testgroup_k8s_io.TestType{}) Invokes(core.NewPatchSubresourceAction(testtypesResource, c.ns, name, data, subresources...), &testgroup_k8s_io.TestType{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -115,9 +115,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -115,9 +115,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &api.Service{}) Invokes(core.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &api.Service{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -37,7 +37,7 @@ type ServiceInterface interface { ...@@ -37,7 +37,7 @@ type ServiceInterface interface {
Get(name string) (*api.Service, error) Get(name string) (*api.Service, error)
List(opts api.ListOptions) (*api.ServiceList, error) List(opts api.ListOptions) (*api.ServiceList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error)
ServiceExpansion ServiceExpansion
} }
...@@ -150,11 +150,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -150,11 +150,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *services) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) {
result = &api.Service{} result = &api.Service{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("services"). Resource("services").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type ClusterInterface interface { ...@@ -38,7 +38,7 @@ type ClusterInterface interface {
Get(name string) (*federation.Cluster, error) Get(name string) (*federation.Cluster, error)
List(opts api.ListOptions) (*federation.ClusterList, error) List(opts api.ListOptions) (*federation.ClusterList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error)
ClusterExpansion ClusterExpansion
} }
...@@ -141,10 +141,11 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -141,10 +141,11 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched cluster. // 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) { func (c *clusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error) {
result = &federation.Cluster{} result = &federation.Cluster{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("clusters"). Resource("clusters").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -108,9 +108,9 @@ func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -108,9 +108,9 @@ func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched cluster. // 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) { func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(clustersResource, name, data), &federation.Cluster{}) Invokes(core.NewRootPatchSubresourceAction(clustersResource, name, data, subresources...), &federation.Cluster{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -116,9 +116,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &v1.Service{}) Invokes(core.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &v1.Service{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -38,7 +38,7 @@ type ServiceInterface interface { ...@@ -38,7 +38,7 @@ type ServiceInterface interface {
Get(name string) (*v1.Service, error) Get(name string) (*v1.Service, error)
List(opts api.ListOptions) (*v1.ServiceList, error) List(opts api.ListOptions) (*v1.ServiceList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error)
ServiceExpansion ServiceExpansion
} }
...@@ -151,11 +151,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *services) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) {
result = &v1.Service{} result = &v1.Service{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("services"). Resource("services").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type ClusterInterface interface { ...@@ -38,7 +38,7 @@ type ClusterInterface interface {
Get(name string) (*v1beta1.Cluster, error) Get(name string) (*v1beta1.Cluster, error)
List(opts api.ListOptions) (*v1beta1.ClusterList, error) List(opts api.ListOptions) (*v1beta1.ClusterList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.Cluster, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error)
ClusterExpansion ClusterExpansion
} }
...@@ -141,10 +141,11 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -141,10 +141,11 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched cluster. // Patch applies the patch and returns the patched cluster.
func (c *clusters) Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.Cluster, err error) { func (c *clusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error) {
result = &v1beta1.Cluster{} result = &v1beta1.Cluster{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("clusters"). Resource("clusters").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -108,9 +108,9 @@ func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -108,9 +108,9 @@ func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched cluster. // Patch applies the patch and returns the patched cluster.
func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.Cluster, err error) { func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(clustersResource, name, data), &v1beta1.Cluster{}) Invokes(core.NewRootPatchSubresourceAction(clustersResource, name, data, subresources...), &v1beta1.Cluster{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -116,9 +116,9 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interf ...@@ -116,9 +116,9 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interf
} }
// Patch applies the patch and returns the patched horizontalPodAutoscaler. // 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) { func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(horizontalpodautoscalersResource, c.ns, name, data), &autoscaling.HorizontalPodAutoscaler{}) Invokes(core.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &autoscaling.HorizontalPodAutoscaler{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -38,7 +38,7 @@ type HorizontalPodAutoscalerInterface interface { ...@@ -38,7 +38,7 @@ type HorizontalPodAutoscalerInterface interface {
Get(name string) (*autoscaling.HorizontalPodAutoscaler, error) Get(name string) (*autoscaling.HorizontalPodAutoscaler, error)
List(opts api.ListOptions) (*autoscaling.HorizontalPodAutoscalerList, error) List(opts api.ListOptions) (*autoscaling.HorizontalPodAutoscalerList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *autoscaling.HorizontalPodAutoscaler, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error)
HorizontalPodAutoscalerExpansion HorizontalPodAutoscalerExpansion
} }
...@@ -151,11 +151,12 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, ...@@ -151,11 +151,12 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface,
} }
// Patch applies the patch and returns the patched horizontalPodAutoscaler. // 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) { func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) {
result = &autoscaling.HorizontalPodAutoscaler{} result = &autoscaling.HorizontalPodAutoscaler{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("horizontalpodautoscalers"). Resource("horizontalpodautoscalers").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -116,9 +116,9 @@ func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched job. // 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) { func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(jobsResource, c.ns, name, data), &batch.Job{}) Invokes(core.NewPatchSubresourceAction(jobsResource, c.ns, name, data, subresources...), &batch.Job{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -116,9 +116,9 @@ func (c *FakeScheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -116,9 +116,9 @@ func (c *FakeScheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched scheduledJob. // 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) { func (c *FakeScheduledJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.ScheduledJob, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(scheduledjobsResource, c.ns, name, data), &batch.ScheduledJob{}) Invokes(core.NewPatchSubresourceAction(scheduledjobsResource, c.ns, name, data, subresources...), &batch.ScheduledJob{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -38,7 +38,7 @@ type JobInterface interface { ...@@ -38,7 +38,7 @@ type JobInterface interface {
Get(name string) (*batch.Job, error) Get(name string) (*batch.Job, error)
List(opts api.ListOptions) (*batch.JobList, error) List(opts api.ListOptions) (*batch.JobList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.Job, err error)
JobExpansion JobExpansion
} }
...@@ -151,11 +151,12 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched job. // 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) { func (c *jobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) {
result = &batch.Job{} result = &batch.Job{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("jobs"). Resource("jobs").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type ScheduledJobInterface interface { ...@@ -38,7 +38,7 @@ type ScheduledJobInterface interface {
Get(name string) (*batch.ScheduledJob, error) Get(name string) (*batch.ScheduledJob, error)
List(opts api.ListOptions) (*batch.ScheduledJobList, error) List(opts api.ListOptions) (*batch.ScheduledJobList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *batch.ScheduledJob, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.ScheduledJob, err error)
ScheduledJobExpansion ScheduledJobExpansion
} }
...@@ -151,11 +151,12 @@ func (c *scheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *scheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched scheduledJob. // 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) { func (c *scheduledJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.ScheduledJob, err error) {
result = &batch.ScheduledJob{} result = &batch.ScheduledJob{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("scheduledjobs"). Resource("scheduledjobs").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type CertificateSigningRequestInterface interface { ...@@ -38,7 +38,7 @@ type CertificateSigningRequestInterface interface {
Get(name string) (*certificates.CertificateSigningRequest, error) Get(name string) (*certificates.CertificateSigningRequest, error)
List(opts api.ListOptions) (*certificates.CertificateSigningRequestList, error) List(opts api.ListOptions) (*certificates.CertificateSigningRequestList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *certificates.CertificateSigningRequest, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error)
CertificateSigningRequestExpansion CertificateSigningRequestExpansion
} }
...@@ -141,10 +141,11 @@ func (c *certificateSigningRequests) Watch(opts api.ListOptions) (watch.Interfac ...@@ -141,10 +141,11 @@ func (c *certificateSigningRequests) Watch(opts api.ListOptions) (watch.Interfac
} }
// Patch applies the patch and returns the patched certificateSigningRequest. // Patch applies the patch and returns the patched certificateSigningRequest.
func (c *certificateSigningRequests) Patch(name string, pt api.PatchType, data []byte) (result *certificates.CertificateSigningRequest, err error) { func (c *certificateSigningRequests) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error) {
result = &certificates.CertificateSigningRequest{} result = &certificates.CertificateSigningRequest{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("certificatesigningrequests"). Resource("certificatesigningrequests").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -108,9 +108,9 @@ func (c *FakeCertificateSigningRequests) Watch(opts api.ListOptions) (watch.Inte ...@@ -108,9 +108,9 @@ func (c *FakeCertificateSigningRequests) Watch(opts api.ListOptions) (watch.Inte
} }
// Patch applies the patch and returns the patched certificateSigningRequest. // Patch applies the patch and returns the patched certificateSigningRequest.
func (c *FakeCertificateSigningRequests) Patch(name string, pt api.PatchType, data []byte) (result *certificates.CertificateSigningRequest, err error) { func (c *FakeCertificateSigningRequests) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(certificatesigningrequestsResource, name, data), &certificates.CertificateSigningRequest{}) Invokes(core.NewRootPatchSubresourceAction(certificatesigningrequestsResource, name, data, subresources...), &certificates.CertificateSigningRequest{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -36,7 +36,7 @@ type ComponentStatusInterface interface { ...@@ -36,7 +36,7 @@ type ComponentStatusInterface interface {
Get(name string) (*api.ComponentStatus, error) Get(name string) (*api.ComponentStatus, error)
List(opts api.ListOptions) (*api.ComponentStatusList, error) List(opts api.ListOptions) (*api.ComponentStatusList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.ComponentStatus, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error)
ComponentStatusExpansion ComponentStatusExpansion
} }
...@@ -127,10 +127,11 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -127,10 +127,11 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched componentStatus. // 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) { func (c *componentStatuses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error) {
result = &api.ComponentStatus{} result = &api.ComponentStatus{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("componentstatuses"). Resource("componentstatuses").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -36,7 +36,7 @@ type ConfigMapInterface interface { ...@@ -36,7 +36,7 @@ type ConfigMapInterface interface {
Get(name string) (*api.ConfigMap, error) Get(name string) (*api.ConfigMap, error)
List(opts api.ListOptions) (*api.ConfigMapList, error) List(opts api.ListOptions) (*api.ConfigMapList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error)
ConfigMapExpansion ConfigMapExpansion
} }
...@@ -136,11 +136,12 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched configMap. // 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) { func (c *configMaps) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) {
result = &api.ConfigMap{} result = &api.ConfigMap{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("configmaps"). Resource("configmaps").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -36,7 +36,7 @@ type EndpointsInterface interface { ...@@ -36,7 +36,7 @@ type EndpointsInterface interface {
Get(name string) (*api.Endpoints, error) Get(name string) (*api.Endpoints, error)
List(opts api.ListOptions) (*api.EndpointsList, error) List(opts api.ListOptions) (*api.EndpointsList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Endpoints, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error)
EndpointsExpansion EndpointsExpansion
} }
...@@ -136,11 +136,12 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched endpoints. // 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) { func (c *endpoints) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error) {
result = &api.Endpoints{} result = &api.Endpoints{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("endpoints"). Resource("endpoints").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -36,7 +36,7 @@ type EventInterface interface { ...@@ -36,7 +36,7 @@ type EventInterface interface {
Get(name string) (*api.Event, error) Get(name string) (*api.Event, error)
List(opts api.ListOptions) (*api.EventList, error) List(opts api.ListOptions) (*api.EventList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Event, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error)
EventExpansion EventExpansion
} }
...@@ -136,11 +136,12 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched event. // 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) { func (c *events) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error) {
result = &api.Event{} result = &api.Event{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("events"). Resource("events").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -98,9 +98,9 @@ func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, er ...@@ -98,9 +98,9 @@ func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, er
} }
// Patch applies the patch and returns the patched componentStatus. // 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) { func (c *FakeComponentStatuses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(componentstatusesResource, name, data), &api.ComponentStatus{}) Invokes(core.NewRootPatchSubresourceAction(componentstatusesResource, name, data, subresources...), &api.ComponentStatus{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -105,9 +105,9 @@ func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -105,9 +105,9 @@ func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched configMap. // 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) { func (c *FakeConfigMaps) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(configmapsResource, c.ns, name, data), &api.ConfigMap{}) Invokes(core.NewPatchSubresourceAction(configmapsResource, c.ns, name, data, subresources...), &api.ConfigMap{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -105,9 +105,9 @@ func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -105,9 +105,9 @@ func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched endpoints. // 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) { func (c *FakeEndpoints) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(endpointsResource, c.ns, name, data), &api.Endpoints{}) Invokes(core.NewPatchSubresourceAction(endpointsResource, c.ns, name, data, subresources...), &api.Endpoints{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -105,9 +105,9 @@ func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -105,9 +105,9 @@ func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched event. // 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) { func (c *FakeEvents) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(eventsResource, c.ns, name, data), &api.Event{}) Invokes(core.NewPatchSubresourceAction(eventsResource, c.ns, name, data, subresources...), &api.Event{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -105,9 +105,9 @@ func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -105,9 +105,9 @@ func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched limitRange. // 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) { func (c *FakeLimitRanges) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(limitrangesResource, c.ns, name, data), &api.LimitRange{}) Invokes(core.NewPatchSubresourceAction(limitrangesResource, c.ns, name, data, subresources...), &api.LimitRange{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -107,9 +107,9 @@ func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -107,9 +107,9 @@ func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched namespace. // 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) { func (c *FakeNamespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(namespacesResource, name, data), &api.Namespace{}) Invokes(core.NewRootPatchSubresourceAction(namespacesResource, name, data, subresources...), &api.Namespace{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -107,9 +107,9 @@ func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -107,9 +107,9 @@ func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched node. // 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) { func (c *FakeNodes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Node, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(nodesResource, name, data), &api.Node{}) Invokes(core.NewRootPatchSubresourceAction(nodesResource, name, data, subresources...), &api.Node{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
func (c *FakeNodes) PatchStatus(nodeName string, data []byte) (*api.Node, error) { func (c *FakeNodes) PatchStatus(nodeName string, data []byte) (*api.Node, error) {
obj, err := c.Fake.Invokes( obj, err := c.Fake.Invokes(
core.NewPatchSubresourceAction(nodesResource, "status"), &api.Node{}) core.NewRootPatchSubresourceAction(nodesResource, nodeName, data, "status"), &api.Node{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -107,9 +107,9 @@ func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, er ...@@ -107,9 +107,9 @@ func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, er
} }
// Patch applies the patch and returns the patched persistentVolume. // 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) { func (c *FakePersistentVolumes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(persistentvolumesResource, name, data), &api.PersistentVolume{}) Invokes(core.NewRootPatchSubresourceAction(persistentvolumesResource, name, data, subresources...), &api.PersistentVolume{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -115,9 +115,9 @@ func (c *FakePersistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interfac ...@@ -115,9 +115,9 @@ func (c *FakePersistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interfac
} }
// Patch applies the patch and returns the patched persistentVolumeClaim. // 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) { func (c *FakePersistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(persistentvolumeclaimsResource, c.ns, name, data), &api.PersistentVolumeClaim{}) Invokes(core.NewPatchSubresourceAction(persistentvolumeclaimsResource, c.ns, name, data, subresources...), &api.PersistentVolumeClaim{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -115,9 +115,9 @@ func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -115,9 +115,9 @@ func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched pod. // 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) { func (c *FakePods) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Pod, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(podsResource, c.ns, name, data), &api.Pod{}) Invokes(core.NewPatchSubresourceAction(podsResource, c.ns, name, data, subresources...), &api.Pod{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -105,9 +105,9 @@ func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -105,9 +105,9 @@ func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched podTemplate. // 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) { func (c *FakePodTemplates) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(podtemplatesResource, c.ns, name, data), &api.PodTemplate{}) Invokes(core.NewPatchSubresourceAction(podtemplatesResource, c.ns, name, data, subresources...), &api.PodTemplate{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -115,9 +115,9 @@ func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interfac ...@@ -115,9 +115,9 @@ func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interfac
} }
// Patch applies the patch and returns the patched replicationController. // 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) { func (c *FakeReplicationControllers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(replicationcontrollersResource, c.ns, name, data), &api.ReplicationController{}) Invokes(core.NewPatchSubresourceAction(replicationcontrollersResource, c.ns, name, data, subresources...), &api.ReplicationController{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -115,9 +115,9 @@ func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error ...@@ -115,9 +115,9 @@ func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error
} }
// Patch applies the patch and returns the patched resourceQuota. // 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) { func (c *FakeResourceQuotas) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(resourcequotasResource, c.ns, name, data), &api.ResourceQuota{}) Invokes(core.NewPatchSubresourceAction(resourcequotasResource, c.ns, name, data, subresources...), &api.ResourceQuota{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -105,9 +105,9 @@ func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -105,9 +105,9 @@ func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched secret. // 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) { func (c *FakeSecrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(secretsResource, c.ns, name, data), &api.Secret{}) Invokes(core.NewPatchSubresourceAction(secretsResource, c.ns, name, data, subresources...), &api.Secret{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -115,9 +115,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -115,9 +115,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &api.Service{}) Invokes(core.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &api.Service{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -105,9 +105,9 @@ func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, erro ...@@ -105,9 +105,9 @@ func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, erro
} }
// Patch applies the patch and returns the patched serviceAccount. // 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) { func (c *FakeServiceAccounts) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(serviceaccountsResource, c.ns, name, data), &api.ServiceAccount{}) Invokes(core.NewPatchSubresourceAction(serviceaccountsResource, c.ns, name, data, subresources...), &api.ServiceAccount{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -36,7 +36,7 @@ type LimitRangeInterface interface { ...@@ -36,7 +36,7 @@ type LimitRangeInterface interface {
Get(name string) (*api.LimitRange, error) Get(name string) (*api.LimitRange, error)
List(opts api.ListOptions) (*api.LimitRangeList, error) List(opts api.ListOptions) (*api.LimitRangeList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error)
LimitRangeExpansion LimitRangeExpansion
} }
...@@ -136,11 +136,12 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched limitRange. // 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) { func (c *limitRanges) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error) {
result = &api.LimitRange{} result = &api.LimitRange{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("limitranges"). Resource("limitranges").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type NamespaceInterface interface { ...@@ -37,7 +37,7 @@ type NamespaceInterface interface {
Get(name string) (*api.Namespace, error) Get(name string) (*api.Namespace, error)
List(opts api.ListOptions) (*api.NamespaceList, error) List(opts api.ListOptions) (*api.NamespaceList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Namespace, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error)
NamespaceExpansion NamespaceExpansion
} }
...@@ -140,10 +140,11 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -140,10 +140,11 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched namespace. // 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) { func (c *namespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) {
result = &api.Namespace{} result = &api.Namespace{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("namespaces"). Resource("namespaces").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type NodeInterface interface { ...@@ -37,7 +37,7 @@ type NodeInterface interface {
Get(name string) (*api.Node, error) Get(name string) (*api.Node, error)
List(opts api.ListOptions) (*api.NodeList, error) List(opts api.ListOptions) (*api.NodeList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Node, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Node, err error)
NodeExpansion NodeExpansion
} }
...@@ -140,10 +140,11 @@ func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -140,10 +140,11 @@ func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched node. // 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) { func (c *nodes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Node, err error) {
result = &api.Node{} result = &api.Node{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("nodes"). Resource("nodes").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type PersistentVolumeInterface interface { ...@@ -37,7 +37,7 @@ type PersistentVolumeInterface interface {
Get(name string) (*api.PersistentVolume, error) Get(name string) (*api.PersistentVolume, error)
List(opts api.ListOptions) (*api.PersistentVolumeList, error) List(opts api.ListOptions) (*api.PersistentVolumeList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolume, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error)
PersistentVolumeExpansion PersistentVolumeExpansion
} }
...@@ -140,10 +140,11 @@ func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -140,10 +140,11 @@ func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched persistentVolume. // 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) { func (c *persistentVolumes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error) {
result = &api.PersistentVolume{} result = &api.PersistentVolume{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("persistentvolumes"). Resource("persistentvolumes").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type PersistentVolumeClaimInterface interface { ...@@ -37,7 +37,7 @@ type PersistentVolumeClaimInterface interface {
Get(name string) (*api.PersistentVolumeClaim, error) Get(name string) (*api.PersistentVolumeClaim, error)
List(opts api.ListOptions) (*api.PersistentVolumeClaimList, error) List(opts api.ListOptions) (*api.PersistentVolumeClaimList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error)
PersistentVolumeClaimExpansion PersistentVolumeClaimExpansion
} }
...@@ -150,11 +150,12 @@ func (c *persistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, e ...@@ -150,11 +150,12 @@ func (c *persistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, e
} }
// Patch applies the patch and returns the patched persistentVolumeClaim. // 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) { func (c *persistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error) {
result = &api.PersistentVolumeClaim{} result = &api.PersistentVolumeClaim{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("persistentvolumeclaims"). Resource("persistentvolumeclaims").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type PodInterface interface { ...@@ -37,7 +37,7 @@ type PodInterface interface {
Get(name string) (*api.Pod, error) Get(name string) (*api.Pod, error)
List(opts api.ListOptions) (*api.PodList, error) List(opts api.ListOptions) (*api.PodList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Pod, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Pod, err error)
PodExpansion PodExpansion
} }
...@@ -150,11 +150,12 @@ func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -150,11 +150,12 @@ func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched pod. // 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) { func (c *pods) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Pod, err error) {
result = &api.Pod{} result = &api.Pod{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("pods"). Resource("pods").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -36,7 +36,7 @@ type PodTemplateInterface interface { ...@@ -36,7 +36,7 @@ type PodTemplateInterface interface {
Get(name string) (*api.PodTemplate, error) Get(name string) (*api.PodTemplate, error)
List(opts api.ListOptions) (*api.PodTemplateList, error) List(opts api.ListOptions) (*api.PodTemplateList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.PodTemplate, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error)
PodTemplateExpansion PodTemplateExpansion
} }
...@@ -136,11 +136,12 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched podTemplate. // 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) { func (c *podTemplates) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error) {
result = &api.PodTemplate{} result = &api.PodTemplate{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("podtemplates"). Resource("podtemplates").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ReplicationControllerInterface interface { ...@@ -37,7 +37,7 @@ type ReplicationControllerInterface interface {
Get(name string) (*api.ReplicationController, error) Get(name string) (*api.ReplicationController, error)
List(opts api.ListOptions) (*api.ReplicationControllerList, error) List(opts api.ListOptions) (*api.ReplicationControllerList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.ReplicationController, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error)
ReplicationControllerExpansion ReplicationControllerExpansion
} }
...@@ -150,11 +150,12 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e ...@@ -150,11 +150,12 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e
} }
// Patch applies the patch and returns the patched replicationController. // 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) { func (c *replicationControllers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error) {
result = &api.ReplicationController{} result = &api.ReplicationController{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("replicationcontrollers"). Resource("replicationcontrollers").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ResourceQuotaInterface interface { ...@@ -37,7 +37,7 @@ type ResourceQuotaInterface interface {
Get(name string) (*api.ResourceQuota, error) Get(name string) (*api.ResourceQuota, error)
List(opts api.ListOptions) (*api.ResourceQuotaList, error) List(opts api.ListOptions) (*api.ResourceQuotaList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.ResourceQuota, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error)
ResourceQuotaExpansion ResourceQuotaExpansion
} }
...@@ -150,11 +150,12 @@ func (c *resourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -150,11 +150,12 @@ func (c *resourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched resourceQuota. // 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) { func (c *resourceQuotas) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error) {
result = &api.ResourceQuota{} result = &api.ResourceQuota{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("resourcequotas"). Resource("resourcequotas").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -36,7 +36,7 @@ type SecretInterface interface { ...@@ -36,7 +36,7 @@ type SecretInterface interface {
Get(name string) (*api.Secret, error) Get(name string) (*api.Secret, error)
List(opts api.ListOptions) (*api.SecretList, error) List(opts api.ListOptions) (*api.SecretList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error)
SecretExpansion SecretExpansion
} }
...@@ -136,11 +136,12 @@ func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched secret. // 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) { func (c *secrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) {
result = &api.Secret{} result = &api.Secret{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("secrets"). Resource("secrets").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ServiceInterface interface { ...@@ -37,7 +37,7 @@ type ServiceInterface interface {
Get(name string) (*api.Service, error) Get(name string) (*api.Service, error)
List(opts api.ListOptions) (*api.ServiceList, error) List(opts api.ListOptions) (*api.ServiceList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error)
ServiceExpansion ServiceExpansion
} }
...@@ -150,11 +150,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -150,11 +150,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *services) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) {
result = &api.Service{} result = &api.Service{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("services"). Resource("services").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -36,7 +36,7 @@ type ServiceAccountInterface interface { ...@@ -36,7 +36,7 @@ type ServiceAccountInterface interface {
Get(name string) (*api.ServiceAccount, error) Get(name string) (*api.ServiceAccount, error)
List(opts api.ListOptions) (*api.ServiceAccountList, error) List(opts api.ListOptions) (*api.ServiceAccountList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *api.ServiceAccount, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error)
ServiceAccountExpansion ServiceAccountExpansion
} }
...@@ -136,11 +136,12 @@ func (c *serviceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -136,11 +136,12 @@ func (c *serviceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched serviceAccount. // 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) { func (c *serviceAccounts) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error) {
result = &api.ServiceAccount{} result = &api.ServiceAccount{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("serviceaccounts"). Resource("serviceaccounts").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type DaemonSetInterface interface { ...@@ -38,7 +38,7 @@ type DaemonSetInterface interface {
Get(name string) (*extensions.DaemonSet, error) Get(name string) (*extensions.DaemonSet, error)
List(opts api.ListOptions) (*extensions.DaemonSetList, error) List(opts api.ListOptions) (*extensions.DaemonSetList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *extensions.DaemonSet, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error)
DaemonSetExpansion DaemonSetExpansion
} }
...@@ -151,11 +151,12 @@ func (c *daemonSets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *daemonSets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched daemonSet. // 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) { func (c *daemonSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) {
result = &extensions.DaemonSet{} result = &extensions.DaemonSet{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("daemonsets"). Resource("daemonsets").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type DeploymentInterface interface { ...@@ -38,7 +38,7 @@ type DeploymentInterface interface {
Get(name string) (*extensions.Deployment, error) Get(name string) (*extensions.Deployment, error)
List(opts api.ListOptions) (*extensions.DeploymentList, error) List(opts api.ListOptions) (*extensions.DeploymentList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error)
DeploymentExpansion DeploymentExpansion
} }
...@@ -151,11 +151,12 @@ func (c *deployments) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *deployments) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched deployment. // 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) { func (c *deployments) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) {
result = &extensions.Deployment{} result = &extensions.Deployment{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("deployments"). Resource("deployments").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -116,9 +116,9 @@ func (c *FakeDaemonSets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeDaemonSets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched daemonSet. // 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) { func (c *FakeDaemonSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(daemonsetsResource, c.ns, name, data), &extensions.DaemonSet{}) Invokes(core.NewPatchSubresourceAction(daemonsetsResource, c.ns, name, data, subresources...), &extensions.DaemonSet{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -116,9 +116,9 @@ func (c *FakeDeployments) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeDeployments) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched deployment. // 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) { func (c *FakeDeployments) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(deploymentsResource, c.ns, name, data), &extensions.Deployment{}) Invokes(core.NewPatchSubresourceAction(deploymentsResource, c.ns, name, data, subresources...), &extensions.Deployment{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -116,9 +116,9 @@ func (c *FakeIngresses) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeIngresses) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched ingress. // 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) { func (c *FakeIngresses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(ingressesResource, c.ns, name, data), &extensions.Ingress{}) Invokes(core.NewPatchSubresourceAction(ingressesResource, c.ns, name, data, subresources...), &extensions.Ingress{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -99,9 +99,9 @@ func (c *FakePodSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface, ...@@ -99,9 +99,9 @@ func (c *FakePodSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface,
} }
// Patch applies the patch and returns the patched podSecurityPolicy. // 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) { func (c *FakePodSecurityPolicies) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.PodSecurityPolicy, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(podsecuritypoliciesResource, name, data), &extensions.PodSecurityPolicy{}) Invokes(core.NewRootPatchSubresourceAction(podsecuritypoliciesResource, name, data, subresources...), &extensions.PodSecurityPolicy{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -116,9 +116,9 @@ func (c *FakeReplicaSets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeReplicaSets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched replicaSet. // 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) { func (c *FakeReplicaSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(replicasetsResource, c.ns, name, data), &extensions.ReplicaSet{}) Invokes(core.NewPatchSubresourceAction(replicasetsResource, c.ns, name, data, subresources...), &extensions.ReplicaSet{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -99,9 +99,9 @@ func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, ...@@ -99,9 +99,9 @@ func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface,
} }
// Patch applies the patch and returns the patched thirdPartyResource. // 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) { func (c *FakeThirdPartyResources) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ThirdPartyResource, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(thirdpartyresourcesResource, name, data), &extensions.ThirdPartyResource{}) Invokes(core.NewRootPatchSubresourceAction(thirdpartyresourcesResource, name, data, subresources...), &extensions.ThirdPartyResource{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -38,7 +38,7 @@ type IngressInterface interface { ...@@ -38,7 +38,7 @@ type IngressInterface interface {
Get(name string) (*extensions.Ingress, error) Get(name string) (*extensions.Ingress, error)
List(opts api.ListOptions) (*extensions.IngressList, error) List(opts api.ListOptions) (*extensions.IngressList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *extensions.Ingress, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error)
IngressExpansion IngressExpansion
} }
...@@ -151,11 +151,12 @@ func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched ingress. // 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) { func (c *ingresses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) {
result = &extensions.Ingress{} result = &extensions.Ingress{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("ingresses"). Resource("ingresses").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type PodSecurityPolicyInterface interface { ...@@ -37,7 +37,7 @@ type PodSecurityPolicyInterface interface {
Get(name string) (*extensions.PodSecurityPolicy, error) Get(name string) (*extensions.PodSecurityPolicy, error)
List(opts api.ListOptions) (*extensions.PodSecurityPolicyList, error) List(opts api.ListOptions) (*extensions.PodSecurityPolicyList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *extensions.PodSecurityPolicy, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.PodSecurityPolicy, err error)
PodSecurityPolicyExpansion PodSecurityPolicyExpansion
} }
...@@ -128,10 +128,11 @@ func (c *podSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface, erro ...@@ -128,10 +128,11 @@ func (c *podSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface, erro
} }
// Patch applies the patch and returns the patched podSecurityPolicy. // 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) { func (c *podSecurityPolicies) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.PodSecurityPolicy, err error) {
result = &extensions.PodSecurityPolicy{} result = &extensions.PodSecurityPolicy{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("podsecuritypolicies"). Resource("podsecuritypolicies").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type ReplicaSetInterface interface { ...@@ -38,7 +38,7 @@ type ReplicaSetInterface interface {
Get(name string) (*extensions.ReplicaSet, error) Get(name string) (*extensions.ReplicaSet, error)
List(opts api.ListOptions) (*extensions.ReplicaSetList, error) List(opts api.ListOptions) (*extensions.ReplicaSetList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *extensions.ReplicaSet, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error)
ReplicaSetExpansion ReplicaSetExpansion
} }
...@@ -151,11 +151,12 @@ func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched replicaSet. // 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) { func (c *replicaSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) {
result = &extensions.ReplicaSet{} result = &extensions.ReplicaSet{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("replicasets"). Resource("replicasets").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ThirdPartyResourceInterface interface { ...@@ -37,7 +37,7 @@ type ThirdPartyResourceInterface interface {
Get(name string) (*extensions.ThirdPartyResource, error) Get(name string) (*extensions.ThirdPartyResource, error)
List(opts api.ListOptions) (*extensions.ThirdPartyResourceList, error) List(opts api.ListOptions) (*extensions.ThirdPartyResourceList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *extensions.ThirdPartyResource, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ThirdPartyResource, err error)
ThirdPartyResourceExpansion ThirdPartyResourceExpansion
} }
...@@ -128,10 +128,11 @@ func (c *thirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, erro ...@@ -128,10 +128,11 @@ func (c *thirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, erro
} }
// Patch applies the patch and returns the patched thirdPartyResource. // 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) { func (c *thirdPartyResources) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ThirdPartyResource, err error) {
result = &extensions.ThirdPartyResource{} result = &extensions.ThirdPartyResource{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("thirdpartyresources"). Resource("thirdpartyresources").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ClusterRoleInterface interface { ...@@ -37,7 +37,7 @@ type ClusterRoleInterface interface {
Get(name string) (*rbac.ClusterRole, error) Get(name string) (*rbac.ClusterRole, error)
List(opts api.ListOptions) (*rbac.ClusterRoleList, error) List(opts api.ListOptions) (*rbac.ClusterRoleList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRole, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRole, err error)
ClusterRoleExpansion ClusterRoleExpansion
} }
...@@ -128,10 +128,11 @@ func (c *clusterRoles) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -128,10 +128,11 @@ func (c *clusterRoles) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched clusterRole. // 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) { func (c *clusterRoles) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRole, err error) {
result = &rbac.ClusterRole{} result = &rbac.ClusterRole{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("clusterroles"). Resource("clusterroles").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ClusterRoleBindingInterface interface { ...@@ -37,7 +37,7 @@ type ClusterRoleBindingInterface interface {
Get(name string) (*rbac.ClusterRoleBinding, error) Get(name string) (*rbac.ClusterRoleBinding, error)
List(opts api.ListOptions) (*rbac.ClusterRoleBindingList, error) List(opts api.ListOptions) (*rbac.ClusterRoleBindingList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRoleBinding, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRoleBinding, err error)
ClusterRoleBindingExpansion ClusterRoleBindingExpansion
} }
...@@ -128,10 +128,11 @@ func (c *clusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, erro ...@@ -128,10 +128,11 @@ func (c *clusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, erro
} }
// Patch applies the patch and returns the patched clusterRoleBinding. // 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) { func (c *clusterRoleBindings) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRoleBinding, err error) {
result = &rbac.ClusterRoleBinding{} result = &rbac.ClusterRoleBinding{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("clusterrolebindings"). Resource("clusterrolebindings").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -99,9 +99,9 @@ func (c *FakeClusterRoles) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -99,9 +99,9 @@ func (c *FakeClusterRoles) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched clusterRole. // 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) { func (c *FakeClusterRoles) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRole, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(clusterrolesResource, name, data), &rbac.ClusterRole{}) Invokes(core.NewRootPatchSubresourceAction(clusterrolesResource, name, data, subresources...), &rbac.ClusterRole{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -99,9 +99,9 @@ func (c *FakeClusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, ...@@ -99,9 +99,9 @@ func (c *FakeClusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface,
} }
// Patch applies the patch and returns the patched clusterRoleBinding. // 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) { func (c *FakeClusterRoleBindings) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRoleBinding, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(clusterrolebindingsResource, name, data), &rbac.ClusterRoleBinding{}) Invokes(core.NewRootPatchSubresourceAction(clusterrolebindingsResource, name, data, subresources...), &rbac.ClusterRoleBinding{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -106,9 +106,9 @@ func (c *FakeRoles) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -106,9 +106,9 @@ func (c *FakeRoles) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched role. // 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) { func (c *FakeRoles) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.Role, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(rolesResource, c.ns, name, data), &rbac.Role{}) Invokes(core.NewPatchSubresourceAction(rolesResource, c.ns, name, data, subresources...), &rbac.Role{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakeRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -106,9 +106,9 @@ func (c *FakeRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched roleBinding. // 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) { func (c *FakeRoleBindings) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.RoleBinding, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(rolebindingsResource, c.ns, name, data), &rbac.RoleBinding{}) Invokes(core.NewPatchSubresourceAction(rolebindingsResource, c.ns, name, data, subresources...), &rbac.RoleBinding{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -37,7 +37,7 @@ type RoleInterface interface { ...@@ -37,7 +37,7 @@ type RoleInterface interface {
Get(name string) (*rbac.Role, error) Get(name string) (*rbac.Role, error)
List(opts api.ListOptions) (*rbac.RoleList, error) List(opts api.ListOptions) (*rbac.RoleList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *rbac.Role, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.Role, err error)
RoleExpansion RoleExpansion
} }
...@@ -137,11 +137,12 @@ func (c *roles) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *roles) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched role. // 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) { func (c *roles) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.Role, err error) {
result = &rbac.Role{} result = &rbac.Role{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("roles"). Resource("roles").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type RoleBindingInterface interface { ...@@ -37,7 +37,7 @@ type RoleBindingInterface interface {
Get(name string) (*rbac.RoleBinding, error) Get(name string) (*rbac.RoleBinding, error)
List(opts api.ListOptions) (*rbac.RoleBindingList, error) List(opts api.ListOptions) (*rbac.RoleBindingList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *rbac.RoleBinding, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.RoleBinding, err error)
RoleBindingExpansion RoleBindingExpansion
} }
...@@ -137,11 +137,12 @@ func (c *roleBindings) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *roleBindings) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched roleBinding. // 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) { func (c *roleBindings) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.RoleBinding, err error) {
result = &rbac.RoleBinding{} result = &rbac.RoleBinding{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("rolebindings"). Resource("rolebindings").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -116,9 +116,9 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interf ...@@ -116,9 +116,9 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interf
} }
// Patch applies the patch and returns the patched horizontalPodAutoscaler. // 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) { func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(horizontalpodautoscalersResource, c.ns, name, data), &v1.HorizontalPodAutoscaler{}) Invokes(core.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &v1.HorizontalPodAutoscaler{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -38,7 +38,7 @@ type HorizontalPodAutoscalerInterface interface { ...@@ -38,7 +38,7 @@ type HorizontalPodAutoscalerInterface interface {
Get(name string) (*v1.HorizontalPodAutoscaler, error) Get(name string) (*v1.HorizontalPodAutoscaler, error)
List(opts api.ListOptions) (*v1.HorizontalPodAutoscalerList, error) List(opts api.ListOptions) (*v1.HorizontalPodAutoscalerList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.HorizontalPodAutoscaler, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error)
HorizontalPodAutoscalerExpansion HorizontalPodAutoscalerExpansion
} }
...@@ -151,11 +151,12 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, ...@@ -151,11 +151,12 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface,
} }
// Patch applies the patch and returns the patched horizontalPodAutoscaler. // 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) { func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) {
result = &v1.HorizontalPodAutoscaler{} result = &v1.HorizontalPodAutoscaler{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("horizontalpodautoscalers"). Resource("horizontalpodautoscalers").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -116,9 +116,9 @@ func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched job. // 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) { func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Job, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(jobsResource, c.ns, name, data), &v1.Job{}) Invokes(core.NewPatchSubresourceAction(jobsResource, c.ns, name, data, subresources...), &v1.Job{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -38,7 +38,7 @@ type JobInterface interface { ...@@ -38,7 +38,7 @@ type JobInterface interface {
Get(name string) (*v1.Job, error) Get(name string) (*v1.Job, error)
List(opts api.ListOptions) (*v1.JobList, error) List(opts api.ListOptions) (*v1.JobList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Job, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Job, err error)
JobExpansion JobExpansion
} }
...@@ -151,11 +151,12 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched job. // 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) { func (c *jobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Job, err error) {
result = &v1.Job{} result = &v1.Job{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("jobs"). Resource("jobs").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ComponentStatusInterface interface { ...@@ -37,7 +37,7 @@ type ComponentStatusInterface interface {
Get(name string) (*v1.ComponentStatus, error) Get(name string) (*v1.ComponentStatus, error)
List(opts api.ListOptions) (*v1.ComponentStatusList, error) List(opts api.ListOptions) (*v1.ComponentStatusList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.ComponentStatus, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ComponentStatus, err error)
ComponentStatusExpansion ComponentStatusExpansion
} }
...@@ -128,10 +128,11 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -128,10 +128,11 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched componentStatus. // 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) { func (c *componentStatuses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ComponentStatus, err error) {
result = &v1.ComponentStatus{} result = &v1.ComponentStatus{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("componentstatuses"). Resource("componentstatuses").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type ConfigMapInterface interface { ...@@ -37,7 +37,7 @@ type ConfigMapInterface interface {
Get(name string) (*v1.ConfigMap, error) Get(name string) (*v1.ConfigMap, error)
List(opts api.ListOptions) (*v1.ConfigMapList, error) List(opts api.ListOptions) (*v1.ConfigMapList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.ConfigMap, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error)
ConfigMapExpansion ConfigMapExpansion
} }
...@@ -137,11 +137,12 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched configMap. // 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) { func (c *configMaps) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) {
result = &v1.ConfigMap{} result = &v1.ConfigMap{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("configmaps"). Resource("configmaps").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type EndpointsInterface interface { ...@@ -37,7 +37,7 @@ type EndpointsInterface interface {
Get(name string) (*v1.Endpoints, error) Get(name string) (*v1.Endpoints, error)
List(opts api.ListOptions) (*v1.EndpointsList, error) List(opts api.ListOptions) (*v1.EndpointsList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Endpoints, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Endpoints, err error)
EndpointsExpansion EndpointsExpansion
} }
...@@ -137,11 +137,12 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched endpoints. // 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) { func (c *endpoints) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Endpoints, err error) {
result = &v1.Endpoints{} result = &v1.Endpoints{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("endpoints"). Resource("endpoints").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type EventInterface interface { ...@@ -37,7 +37,7 @@ type EventInterface interface {
Get(name string) (*v1.Event, error) Get(name string) (*v1.Event, error)
List(opts api.ListOptions) (*v1.EventList, error) List(opts api.ListOptions) (*v1.EventList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Event, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error)
EventExpansion EventExpansion
} }
...@@ -137,11 +137,12 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched event. // 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) { func (c *events) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) {
result = &v1.Event{} result = &v1.Event{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("events"). Resource("events").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -99,9 +99,9 @@ func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, er ...@@ -99,9 +99,9 @@ func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, er
} }
// Patch applies the patch and returns the patched componentStatus. // 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) { func (c *FakeComponentStatuses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ComponentStatus, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(componentstatusesResource, name, data), &v1.ComponentStatus{}) Invokes(core.NewRootPatchSubresourceAction(componentstatusesResource, name, data, subresources...), &v1.ComponentStatus{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -106,9 +106,9 @@ func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -106,9 +106,9 @@ func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched configMap. // 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) { func (c *FakeConfigMaps) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(configmapsResource, c.ns, name, data), &v1.ConfigMap{}) Invokes(core.NewPatchSubresourceAction(configmapsResource, c.ns, name, data, subresources...), &v1.ConfigMap{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -106,9 +106,9 @@ func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched endpoints. // 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) { func (c *FakeEndpoints) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Endpoints, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(endpointsResource, c.ns, name, data), &v1.Endpoints{}) Invokes(core.NewPatchSubresourceAction(endpointsResource, c.ns, name, data, subresources...), &v1.Endpoints{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -106,9 +106,9 @@ func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched event. // 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) { func (c *FakeEvents) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(eventsResource, c.ns, name, data), &v1.Event{}) Invokes(core.NewPatchSubresourceAction(eventsResource, c.ns, name, data, subresources...), &v1.Event{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -106,9 +106,9 @@ func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched limitRange. // 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) { func (c *FakeLimitRanges) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.LimitRange, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(limitrangesResource, c.ns, name, data), &v1.LimitRange{}) Invokes(core.NewPatchSubresourceAction(limitrangesResource, c.ns, name, data, subresources...), &v1.LimitRange{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -108,9 +108,9 @@ func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -108,9 +108,9 @@ func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched namespace. // 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) { func (c *FakeNamespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(namespacesResource, name, data), &v1.Namespace{}) Invokes(core.NewRootPatchSubresourceAction(namespacesResource, name, data, subresources...), &v1.Namespace{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -108,9 +108,9 @@ func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -108,9 +108,9 @@ func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched node. // 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) { func (c *FakeNodes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Node, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(nodesResource, name, data), &v1.Node{}) Invokes(core.NewRootPatchSubresourceAction(nodesResource, name, data, subresources...), &v1.Node{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -108,9 +108,9 @@ func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, er ...@@ -108,9 +108,9 @@ func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, er
} }
// Patch applies the patch and returns the patched persistentVolume. // 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) { func (c *FakePersistentVolumes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PersistentVolume, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootPatchAction(persistentvolumesResource, name, data), &v1.PersistentVolume{}) Invokes(core.NewRootPatchSubresourceAction(persistentvolumesResource, name, data, subresources...), &v1.PersistentVolume{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
......
...@@ -116,9 +116,9 @@ func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched pod. // 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) { func (c *FakePods) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(podsResource, c.ns, name, data), &v1.Pod{}) Invokes(core.NewPatchSubresourceAction(podsResource, c.ns, name, data, subresources...), &v1.Pod{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -106,9 +106,9 @@ func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched podTemplate. // 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) { func (c *FakePodTemplates) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PodTemplate, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(podtemplatesResource, c.ns, name, data), &v1.PodTemplate{}) Invokes(core.NewPatchSubresourceAction(podtemplatesResource, c.ns, name, data, subresources...), &v1.PodTemplate{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -116,9 +116,9 @@ func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interfac ...@@ -116,9 +116,9 @@ func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interfac
} }
// Patch applies the patch and returns the patched replicationController. // 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) { func (c *FakeReplicationControllers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ReplicationController, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(replicationcontrollersResource, c.ns, name, data), &v1.ReplicationController{}) Invokes(core.NewPatchSubresourceAction(replicationcontrollersResource, c.ns, name, data, subresources...), &v1.ReplicationController{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -116,9 +116,9 @@ func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error ...@@ -116,9 +116,9 @@ func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error
} }
// Patch applies the patch and returns the patched resourceQuota. // 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) { func (c *FakeResourceQuotas) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ResourceQuota, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(resourcequotasResource, c.ns, name, data), &v1.ResourceQuota{}) Invokes(core.NewPatchSubresourceAction(resourcequotasResource, c.ns, name, data, subresources...), &v1.ResourceQuota{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -106,9 +106,9 @@ func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched secret. // 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) { func (c *FakeSecrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(secretsResource, c.ns, name, data), &v1.Secret{}) Invokes(core.NewPatchSubresourceAction(secretsResource, c.ns, name, data, subresources...), &v1.Secret{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -116,9 +116,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -116,9 +116,9 @@ func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched service. // 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) { func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &v1.Service{}) Invokes(core.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &v1.Service{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -106,9 +106,9 @@ func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, erro ...@@ -106,9 +106,9 @@ func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, erro
} }
// Patch applies the patch and returns the patched serviceAccount. // 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) { func (c *FakeServiceAccounts) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ServiceAccount, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewPatchAction(serviceaccountsResource, c.ns, name, data), &v1.ServiceAccount{}) Invokes(core.NewPatchSubresourceAction(serviceaccountsResource, c.ns, name, data, subresources...), &v1.ServiceAccount{})
if obj == nil { if obj == nil {
return nil, err return nil, err
......
...@@ -37,7 +37,7 @@ type LimitRangeInterface interface { ...@@ -37,7 +37,7 @@ type LimitRangeInterface interface {
Get(name string) (*v1.LimitRange, error) Get(name string) (*v1.LimitRange, error)
List(opts api.ListOptions) (*v1.LimitRangeList, error) List(opts api.ListOptions) (*v1.LimitRangeList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.LimitRange, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.LimitRange, err error)
LimitRangeExpansion LimitRangeExpansion
} }
...@@ -137,11 +137,12 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched limitRange. // 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) { func (c *limitRanges) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.LimitRange, err error) {
result = &v1.LimitRange{} result = &v1.LimitRange{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("limitranges"). Resource("limitranges").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type NamespaceInterface interface { ...@@ -38,7 +38,7 @@ type NamespaceInterface interface {
Get(name string) (*v1.Namespace, error) Get(name string) (*v1.Namespace, error)
List(opts api.ListOptions) (*v1.NamespaceList, error) List(opts api.ListOptions) (*v1.NamespaceList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Namespace, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error)
NamespaceExpansion NamespaceExpansion
} }
...@@ -141,10 +141,11 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -141,10 +141,11 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched namespace. // 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) { func (c *namespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) {
result = &v1.Namespace{} result = &v1.Namespace{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("namespaces"). Resource("namespaces").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type NodeInterface interface { ...@@ -38,7 +38,7 @@ type NodeInterface interface {
Get(name string) (*v1.Node, error) Get(name string) (*v1.Node, error)
List(opts api.ListOptions) (*v1.NodeList, error) List(opts api.ListOptions) (*v1.NodeList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Node, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Node, err error)
NodeExpansion NodeExpansion
} }
...@@ -141,10 +141,11 @@ func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -141,10 +141,11 @@ func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched node. // Patch applies the patch and returns the patched node.
func (c *nodes) Patch(name string, pt api.PatchType, data []byte) (result *v1.Node, err error) { func (c *nodes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Node, err error) {
result = &v1.Node{} result = &v1.Node{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("nodes"). Resource("nodes").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type PersistentVolumeInterface interface { ...@@ -38,7 +38,7 @@ type PersistentVolumeInterface interface {
Get(name string) (*v1.PersistentVolume, error) Get(name string) (*v1.PersistentVolume, error)
List(opts api.ListOptions) (*v1.PersistentVolumeList, error) List(opts api.ListOptions) (*v1.PersistentVolumeList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.PersistentVolume, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PersistentVolume, err error)
PersistentVolumeExpansion PersistentVolumeExpansion
} }
...@@ -141,10 +141,11 @@ func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error) ...@@ -141,10 +141,11 @@ func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error)
} }
// Patch applies the patch and returns the patched persistentVolume. // Patch applies the patch and returns the patched persistentVolume.
func (c *persistentVolumes) Patch(name string, pt api.PatchType, data []byte) (result *v1.PersistentVolume, err error) { func (c *persistentVolumes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PersistentVolume, err error) {
result = &v1.PersistentVolume{} result = &v1.PersistentVolume{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Resource("persistentvolumes"). Resource("persistentvolumes").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type PodInterface interface { ...@@ -38,7 +38,7 @@ type PodInterface interface {
Get(name string) (*v1.Pod, error) Get(name string) (*v1.Pod, error)
List(opts api.ListOptions) (*v1.PodList, error) List(opts api.ListOptions) (*v1.PodList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.Pod, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error)
PodExpansion PodExpansion
} }
...@@ -151,11 +151,12 @@ func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -151,11 +151,12 @@ func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched pod. // Patch applies the patch and returns the patched pod.
func (c *pods) Patch(name string, pt api.PatchType, data []byte) (result *v1.Pod, err error) { func (c *pods) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error) {
result = &v1.Pod{} result = &v1.Pod{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("pods"). Resource("pods").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -37,7 +37,7 @@ type PodTemplateInterface interface { ...@@ -37,7 +37,7 @@ type PodTemplateInterface interface {
Get(name string) (*v1.PodTemplate, error) Get(name string) (*v1.PodTemplate, error)
List(opts api.ListOptions) (*v1.PodTemplateList, error) List(opts api.ListOptions) (*v1.PodTemplateList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.PodTemplate, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PodTemplate, err error)
PodTemplateExpansion PodTemplateExpansion
} }
...@@ -137,11 +137,12 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) { ...@@ -137,11 +137,12 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) {
} }
// Patch applies the patch and returns the patched podTemplate. // Patch applies the patch and returns the patched podTemplate.
func (c *podTemplates) Patch(name string, pt api.PatchType, data []byte) (result *v1.PodTemplate, err error) { func (c *podTemplates) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PodTemplate, err error) {
result = &v1.PodTemplate{} result = &v1.PodTemplate{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("podtemplates"). Resource("podtemplates").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
...@@ -38,7 +38,7 @@ type ReplicationControllerInterface interface { ...@@ -38,7 +38,7 @@ type ReplicationControllerInterface interface {
Get(name string) (*v1.ReplicationController, error) Get(name string) (*v1.ReplicationController, error)
List(opts api.ListOptions) (*v1.ReplicationControllerList, error) List(opts api.ListOptions) (*v1.ReplicationControllerList, error)
Watch(opts api.ListOptions) (watch.Interface, error) Watch(opts api.ListOptions) (watch.Interface, error)
Patch(name string, pt api.PatchType, data []byte) (result *v1.ReplicationController, err error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ReplicationController, err error)
ReplicationControllerExpansion ReplicationControllerExpansion
} }
...@@ -151,11 +151,12 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e ...@@ -151,11 +151,12 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e
} }
// Patch applies the patch and returns the patched replicationController. // Patch applies the patch and returns the patched replicationController.
func (c *replicationControllers) Patch(name string, pt api.PatchType, data []byte) (result *v1.ReplicationController, err error) { func (c *replicationControllers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ReplicationController, err error) {
result = &v1.ReplicationController{} result = &v1.ReplicationController{}
err = c.client.Patch(pt). err = c.client.Patch(pt).
Namespace(c.ns). Namespace(c.ns).
Resource("replicationcontrollers"). Resource("replicationcontrollers").
SubResource(subresources...).
Name(name). Name(name).
Body(data). Body(data).
Do(). Do().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment