job rerun with resourceVersion

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-11-06 21:22:01 +08:00
parent 0c11778e01
commit e72b0be0c9
4 changed files with 22 additions and 5 deletions

View File

@@ -82,6 +82,7 @@ func addWebService(c *restful.Container) error {
Param(webservice.PathParameter("job", "job name")).
Param(webservice.PathParameter("namespace", "the name of the namespace where the job runs in")).
Param(webservice.QueryParameter("action", "action must be \"rerun\"")).
Param(webservice.QueryParameter("resourceVersion", "version of job, rerun when the version matches")).
Returns(http.StatusOK, ok, errors.Error{}))
webservice.Route(webservice.GET("/{resources}").