未验证 提交 17200172 编写于 作者: Z zryfish 提交者: GitHub

remove specific version of generic proxy server (#2084)

上级 4e3d37a9
......@@ -6,7 +6,8 @@ import (
"kubesphere.io/kubesphere/pkg/kapis/generic"
)
var GroupVersion = schema.GroupVersion{Group: "alerting.kubesphere.io", Version: "v1"}
// there are no versions specified cause we want to proxy all versions of requests to backend service
var GroupVersion = schema.GroupVersion{Group: "alerting.kubesphere.io", Version: ""}
func AddToContainer(container *restful.Container, endpoint string) error {
proxy, err := generic.NewGenericProxy(endpoint, GroupVersion.Group, GroupVersion.Version)
......
......@@ -6,7 +6,8 @@ import (
"kubesphere.io/kubesphere/pkg/kapis/generic"
)
var GroupVersion = schema.GroupVersion{Group: "notification.kubesphere.io", Version: "v1"}
// there are no versions specified cause we want to proxy all versions of requests to backend service
var GroupVersion = schema.GroupVersion{Group: "notification.kubesphere.io", Version: ""}
func AddToContainer(container *restful.Container, endpoint string) error {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册