fix cluster import validation bug (#2223)

This commit is contained in:
zryfish
2020-06-18 10:54:20 +08:00
committed by GitHub
parent 0ac6d069dc
commit b661e0d1b6
3 changed files with 14 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ func AddToContainer(container *restful.Container,
webservice.Route(webservice.GET("/clusters/{cluster}/agent/deployment").
Doc("Return deployment yaml for cluster agent.").
Param(webservice.PathParameter("cluster", "Name of the cluster.").Required(true)).
To(h.GenerateAgentDeployment).
To(h.generateAgentDeployment).
Returns(http.StatusOK, api.StatusOK, nil))
webservice.Route(webservice.POST("/clusters/validation").