Fix the tiny typo in ks-openapi-spec (#5114)

There is tiny typo in Create Namespace API.
So fix it quickly.
This commit is contained in:
Hao Wang
2022-08-10 17:58:32 +08:00
committed by GitHub
parent 74e127e1a6
commit 587dbe723b
2 changed files with 2 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ func AddToContainer(c *restful.Container, factory informers.InformerFactory, k8s
ws.Route(ws.POST("/workspaces/{workspace}/namespaces").
To(handler.CreateNamespace).
Param(ws.PathParameter("workspace", "workspace name")).
Doc("List the namespaces of the specified workspace for the current user").
Doc("Create the namespaces of the specified workspace for the current user").
Reads(corev1.Namespace{}).
Returns(http.StatusOK, api.StatusOK, corev1.Namespace{}).
Metadata(restfulspec.KeyOpenAPITags, []string{constants.NamespaceTag}))