diff --git a/pkg/apis/operations/v1alpha2/register.go b/pkg/apis/operations/v1alpha2/register.go index 311257181..c4240d908 100644 --- a/pkg/apis/operations/v1alpha2/register.go +++ b/pkg/apis/operations/v1alpha2/register.go @@ -54,7 +54,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")). + Param(webservice.QueryParameter("resourceVersion", "version of job, rerun when the version matches").Required(true)). Returns(http.StatusOK, ok, errors.Error{})) c.Add(webservice)