Update register.go

This commit is contained in:
rayzhou2017
2019-07-03 17:09:37 +08:00
committed by GitHub
parent e062d11fef
commit b95956e1ed

View File

@@ -82,7 +82,7 @@ func addWebService(c *restful.Container) error {
Metadata(restfulspec.KeyOpenAPITags, []string{constants.NamespaceResourcesTag}).
Doc("Rerun job whether the job is complete or not").
Param(webservice.PathParameter("job", "job name")).
Param(webservice.PathParameter("namespace", "the namespace where the job runs in")).
Param(webservice.PathParameter("namespace", "the name of the namespace where the job runs in")).
Param(webservice.QueryParameter("action", "action must be \"rerun\"")).
Returns(http.StatusOK, ok, errors.Error{}))