fix(bug): make body a optional parameter in [DELETE] /apis/batch/v1/namespaces/{namespace}/jobs/{name}

Kubernetes-commit: 31372f16129b3f6fa50e85e175643b3a43ba3da2
This commit is contained in:
Neha Yadav 2018-10-27 00:40:10 +05:30 committed by Kubernetes Publisher
parent bcc4ccc10c
commit 3e6dd50d69
1 changed files with 1 additions and 0 deletions

View File

@ -738,6 +738,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
Returns(http.StatusAccepted, "Accepted", versionedStatus)
if isGracefulDeleter {
route.Reads(versionedDeleterObject)
route.ParameterNamed("body").Required(false)
if err := addObjectParams(ws, route, versionedDeleteOptions); err != nil {
return nil, err
}