mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
expose GET and PATCH for status subresource
This commit is contained in:
@@ -116,6 +116,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.ReplicationController{}
|
return &api.ReplicationController{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -92,6 +92,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &extensions.DaemonSet{}
|
return &extensions.DaemonSet{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -115,6 +115,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &extensions.Deployment{}
|
return &extensions.Deployment{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -89,6 +89,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &autoscaling.HorizontalPodAutoscaler{}
|
return &autoscaling.HorizontalPodAutoscaler{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &extensions.Ingress{}
|
return &extensions.Ingress{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -93,6 +93,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &batch.Job{}
|
return &batch.Job{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -176,6 +176,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return r.store.New()
|
return r.store.New()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -54,6 +54,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.Node{}
|
return &api.Node{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.PersistentVolume{}
|
return &api.PersistentVolume{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.PersistentVolumeClaim{}
|
return &api.PersistentVolumeClaim{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &appsapi.PetSet{}
|
return &appsapi.PetSet{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -198,6 +198,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.Pod{}
|
return &api.Pod{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &policyapi.PodDisruptionBudget{}
|
return &policyapi.PodDisruptionBudget{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -115,6 +115,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &extensions.ReplicaSet{}
|
return &extensions.ReplicaSet{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.ResourceQuota{}
|
return &api.ResourceQuota{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
@@ -92,6 +92,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &batch.ScheduledJob{}
|
return &batch.ScheduledJob{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, obj)
|
return r.store.Update(ctx, obj)
|
||||||
|
|||||||
@@ -79,6 +79,11 @@ func (r *StatusREST) New() runtime.Object {
|
|||||||
return &api.Service{}
|
return &api.Service{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves the object from the storage. It is required to support Patch.
|
||||||
|
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error) {
|
||||||
|
return r.store.Get(ctx, name)
|
||||||
|
}
|
||||||
|
|
||||||
// Update alters the status subset of an object.
|
// Update alters the status subset of an object.
|
||||||
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
|
||||||
return r.store.Update(ctx, name, objInfo)
|
return r.store.Update(ctx, name, objInfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user