18
pkg/kapis/alerting/v1/register.go
Normal file
18
pkg/kapis/alerting/v1/register.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/emicklei/go-restful"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"kubesphere.io/kubesphere/pkg/kapis/generic"
|
||||
)
|
||||
|
||||
var GroupVersion = schema.GroupVersion{Group: "alerting.kubesphere.io", Version: "v1"}
|
||||
|
||||
func AddToContainer(container *restful.Container, endpoint string) error {
|
||||
proxy, err := generic.NewGenericProxy(endpoint, GroupVersion.Group, GroupVersion.Version)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return proxy.AddToContainer(container)
|
||||
}
|
||||
Reference in New Issue
Block a user