Make kubectl proxy support picking a random port

This commit is contained in:
Jeff Lowdermilk
2015-07-06 22:04:39 -07:00
parent 74b78d537d
commit f71a662dc6
5 changed files with 36 additions and 13 deletions

View File

@@ -287,7 +287,7 @@ func TestPathHandling(t *testing.T) {
for _, item := range table {
func() {
p, err := NewProxyServer("", item.prefix, "/not/used/for/this/test", nil, cc)
p, err := NewProxyServer(0, "", item.prefix, "/not/used/for/this/test", nil, cc)
if err != nil {
t.Fatalf("%#v: %v", item, err)
}