Clarify comments describing how GuaranteedUpdate() (previously AtomicUpdate() works. Closes #6626.

This commit is contained in:
David Oppenheimer
2015-04-12 15:22:04 -07:00
parent d02139d2b4
commit 6b28a69a1b
5 changed files with 27 additions and 25 deletions

View File

@@ -244,7 +244,7 @@ func CreateResource(r rest.Creater, scope RequestScope, typer runtime.ObjectType
}
// PatchResource returns a function that will handle a resource patch
// TODO: Eventually PatchResource should just use AtomicUpdate and this routine should be a bit cleaner
// TODO: Eventually PatchResource should just use GuaranteedUpdate and this routine should be a bit cleaner
func PatchResource(r rest.Patcher, scope RequestScope, typer runtime.ObjectTyper, admit admission.Interface, converter runtime.ObjectConvertor) restful.RouteFunction {
return func(req *restful.Request, res *restful.Response) {
w := res.ResponseWriter