Fix kubectl proxy

Port flag was being ignored. Fixed now.
This commit is contained in:
Jeff Lowdermlk
2015-01-16 13:19:43 -08:00
committed by Jeff Lowdermilk
parent bba01c7a54
commit 6e98ce34ca
2 changed files with 6 additions and 7 deletions

View File

@@ -36,9 +36,9 @@ func (f *Factory) NewCmdProxy(out io.Writer) *cobra.Command {
clientConfig, err := f.ClientConfig(cmd)
checkErr(err)
server, err := kubectl.NewProxyServer(GetFlagString(cmd, "www"), clientConfig, port)
server, err := kubectl.NewProxyServer(GetFlagString(cmd, "www"), clientConfig)
checkErr(err)
glog.Fatal(server.Serve())
glog.Fatal(server.Serve(port))
},
}
cmd.Flags().StringP("www", "w", "", "Also serve static files from the given directory under the prefix /static")