alter install.go

This commit is contained in:
yanmingfan
2018-05-22 15:22:33 +08:00
parent 7073ba0e8c
commit 970d1653d1

View File

@@ -21,6 +21,7 @@ import (
"kubesphere.io/kubesphere/pkg/apis/v1alpha/nodes" "kubesphere.io/kubesphere/pkg/apis/v1alpha/nodes"
"kubesphere.io/kubesphere/pkg/apis/v1alpha/kubeconfig" "kubesphere.io/kubesphere/pkg/apis/v1alpha/kubeconfig"
"kubesphere.io/kubesphere/pkg/apis/v1alpha/kubectl" "kubesphere.io/kubesphere/pkg/apis/v1alpha/kubectl"
"kubesphere.io/kubesphere/pkg/apis/v1alpha/registries"
) )
func init() { func init() {
@@ -31,6 +32,7 @@ func init() {
nodes.Register(ws,"/nodes") nodes.Register(ws,"/nodes")
kubeconfig.Register(ws, "/namespaces/{namespace}/kubeconfig") kubeconfig.Register(ws, "/namespaces/{namespace}/kubeconfig")
kubectl.Register(ws, "/namespaces/{namespace}/kubectl") kubectl.Register(ws, "/namespaces/{namespace}/kubectl")
registries.Register(ws,"/registries")
// add webservice to default container // add webservice to default container
restful.Add(ws) restful.Add(ws)