move custom apis to kapis

This commit is contained in:
Jeff
2019-12-09 11:48:44 +08:00
parent 2968666376
commit 432bd3310a

View File

@@ -4,7 +4,7 @@ import (
"github.com/emicklei/go-restful"
urlruntime "k8s.io/apimachinery/pkg/util/runtime"
"kubesphere.io/kubesphere/pkg/apiserver/runtime"
v1alpha22 "kubesphere.io/kubesphere/pkg/kapis/servicemesh/metrics/v1alpha2"
"kubesphere.io/kubesphere/pkg/kapis/servicemesh/metrics/v1alpha2"
)
func init() {
@@ -12,5 +12,5 @@ func init() {
}
func Install(c *restful.Container) {
urlruntime.Must(v1alpha22.AddToContainer(c))
urlruntime.Must(v1alpha2.AddToContainer(c))
}