Skip to content

Commit 6daf94b

Browse files
committed
boring: simple rest storage update
1 parent 1f30e79 commit 6daf94b

File tree

1 file changed

+2
-2
lines changed
  • pkg/build/registry/build/etcd

1 file changed

+2
-2
lines changed

pkg/build/registry/build/etcd/etcd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ func (r *DetailsREST) New() runtime.Object {
6363
}
6464

6565
// Update finds a resource in the storage and updates it.
66-
func (r *DetailsREST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error) {
67-
return r.store.Update(ctx, name, objInfo)
66+
func (r *DetailsREST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error) {
67+
return r.store.Update(ctx, name, objInfo, createValidation, updateValidation)
6868
}

0 commit comments

Comments
 (0)