remove specific version of generic proxy server (#2084)
This commit is contained in:
@@ -6,7 +6,8 @@ import (
|
|||||||
"kubesphere.io/kubesphere/pkg/kapis/generic"
|
"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 {
|
func AddToContainer(container *restful.Container, endpoint string) error {
|
||||||
proxy, err := generic.NewGenericProxy(endpoint, GroupVersion.Group, GroupVersion.Version)
|
proxy, err := generic.NewGenericProxy(endpoint, GroupVersion.Group, GroupVersion.Version)
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import (
|
|||||||
"kubesphere.io/kubesphere/pkg/kapis/generic"
|
"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 {
|
func AddToContainer(container *restful.Container, endpoint string) error {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user