remove specific version of generic proxy server (#2084)

This commit is contained in:
zryfish
2020-05-18 18:31:57 +08:00
committed by GitHub
parent 4e3d37a994
commit 17200172a8
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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 {