refine comments

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-09-03 01:20:20 +00:00
parent 9cab2b8339
commit 638f0c9fa0

View File

@@ -32,7 +32,6 @@ import (
"kubesphere.io/kubesphere/pkg/simple/client/gateway"
)
// there are no versions specified cause we want to proxy all versions of requests to backend service
var GroupVersion = schema.GroupVersion{Group: "gateway.kubesphere.io", Version: "v1alpha1"}
func AddToContainer(container *restful.Container, options *gateway.Options, client client.Client) error {
@@ -40,7 +39,7 @@ func AddToContainer(container *restful.Container, options *gateway.Options, clie
handler := newHandler(options, client)
// gateways
// register gateway apis
ws.Route(ws.POST("/namespaces/{namespace}/gateways").
To(handler.Create).
Doc("Create a gateway for a specified namespace.").