change router namespace

This commit is contained in:
jeff
2018-06-26 17:11:18 +08:00
parent 54fbbe4a49
commit 70b1d820b8
2 changed files with 2 additions and 4 deletions

View File

@@ -32,6 +32,6 @@ const (
DataHome = "/etc/kubesphere"
IngressControllerFolder = DataHome + "/ingress-controller"
IngressControllerNamespace = "kubesphere-router-system"
IngressControllerNamespace = KubeSphereControlNameSpace
IngressControllerPrefix = "kubesphere-router-"
)

View File

@@ -18,8 +18,6 @@ import (
"strings"
"time"
"strconv"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/labels"
@@ -96,7 +94,7 @@ func (ctl *ServiceCtl) generateObject(item v1.Service) *Service {
ports += fmt.Sprintf("%d:%s/%s,", port, targetPort, protocol)
if portItem.NodePort != 0 {
nodePorts = append(nodePorts, strconv.FormatInt(int64(portItem.NodePort), 10))
nodePorts = append(nodePorts, fmt.Sprintf("%d:%d/%s", port, portItem.NodePort, protocol))
}
}