convert clusterdashboard to clusterdashboards.

Signed-off-by: zhu733756 <talonzhu@yunify.com>
This commit is contained in:
zhu733756
2021-09-02 10:48:52 +08:00
parent 4d19d1a0e4
commit f328e909d7
2 changed files with 2 additions and 2 deletions

View File

@@ -506,7 +506,7 @@ func AddToContainer(c *restful.Container, k8sClient kubernetes.Interface, monito
Returns(http.StatusOK, respOK, monitoring.Metric{})).
Produces(restful.MIME_JSON)
ws.Route(ws.POST("/clusterdashboard/{grafanaDashboardName}/template").
ws.Route(ws.POST("/clusterdashboards/{grafanaDashboardName}/template").
To(h.handleGrafanaDashboardImport).
Doc("Convert Grafana templates to KubeSphere clusterdashboards.").
Param(ws.PathParameter("grafanaDashboardName", "The name of the Grafana template to be converted").DataType("string").Required(true)).