fix: kubeconfig server host

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-06-28 14:55:55 +08:00
committed by zryfish
parent 4778a8a7d2
commit 2a3e97b709
3 changed files with 30 additions and 7 deletions

View File

@@ -173,7 +173,7 @@ func addWebService(c *restful.Container) error {
Returns(http.StatusOK, ok, models.PodInfo{}))
webservice.Route(webservice.GET("/users/{user}/kubeconfig").
Produces("text/plain").
Produces("text/plain", restful.MIME_JSON).
To(resources.GetKubeconfig).
Doc("get users' kubeconfig").
Param(webservice.PathParameter("user", "username")).