Skip to content

Commit

Permalink
boring: simple rest storage update
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Dec 5, 2017
1 parent cadf6f4 commit 1f30e79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/quota/registry/clusterresourcequota/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ func (r *StatusREST) Get(ctx apirequest.Context, name string, options *metav1.Ge
}

// Update alters the status subset of an object.
func (r *StatusREST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo)
func (r *StatusREST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo, createValidation, updateValidation)
}
4 changes: 2 additions & 2 deletions pkg/route/registry/route/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ func (r *StatusREST) Get(ctx apirequest.Context, name string, options *metav1.Ge
}

// Update alters the status subset of an object.
func (r *StatusREST) Update(ctx apirequest.Context, name string, objInfo kapirest.UpdatedObjectInfo) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo)
func (r *StatusREST) Update(ctx apirequest.Context, name string, objInfo kapirest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo, createValidation, updateValidation)
}
4 changes: 2 additions & 2 deletions pkg/template/registry/templateinstance/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ func (r *StatusREST) Get(ctx request.Context, name string, options *metav1.GetOp
}

// Update alters the status subset of an object.
func (r *StatusREST) Update(ctx request.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo)
func (r *StatusREST) Update(ctx request.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error) {
return r.store.Update(ctx, name, objInfo, createValidation, updateValidation)
}

0 comments on commit 1f30e79

Please sign in to comment.