Merge pull request #100141 from brendandburns/master
Fix api installer to indicate PATCH may return a 201 for server side apply Kubernetes-commit: e5e18d5266413fa56cc1b708f3c9e6772e6690e8
This commit is contained in:
commit
0f7cee9856
|
|
@ -805,6 +805,8 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||
Operation("patch"+namespaced+kind+strings.Title(subresource)+operationSuffix).
|
||||
Produces(append(storageMeta.ProducesMIMETypes(action.Verb), mediaTypes...)...).
|
||||
Returns(http.StatusOK, "OK", producedObject).
|
||||
// Patch can return 201 when a server side apply is requested
|
||||
Returns(http.StatusCreated, "Created", producedObject).
|
||||
Reads(metav1.Patch{}).
|
||||
Writes(producedObject)
|
||||
if err := AddObjectParams(ws, route, versionedPatchOptions); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue