mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Implement multi-port Endpoints
This is a part of multi-port services.
This commit is contained in:
@@ -22,10 +22,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
"text/template"
|
||||
@@ -270,10 +268,11 @@ func formatEndpoints(endpoints []api.Endpoint) string {
|
||||
return "<empty>"
|
||||
}
|
||||
list := []string{}
|
||||
for i := range endpoints {
|
||||
ep := &endpoints[i]
|
||||
list = append(list, net.JoinHostPort(ep.IP, strconv.Itoa(ep.Port)))
|
||||
}
|
||||
//FIXME: What do we want to print, now that endpoints are more complex?
|
||||
//for i := range endpoints {
|
||||
// ep := &endpoints[i]
|
||||
// list = append(list, net.JoinHostPort(ep.IP, strconv.Itoa(ep.Port)))
|
||||
//}
|
||||
return strings.Join(list, ",")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user