// UpdateResource returns a function that will handle a resource update func UpdateResource(r rest.Updater, scope *RequestScope, admit admission.Interface) http.HandlerFunc { … } func withAuthorization(validate rest.ValidateObjectFunc, a authorizer.Authorizer, attributes authorizer.Attributes) rest.ValidateObjectFunc { … } // updateToCreateOptions creates a CreateOptions with the same field values as the provided UpdateOptions. func updateToCreateOptions(uo *metav1.UpdateOptions) *metav1.CreateOptions { … }