Fix kubectl proxy
Port flag was being ignored. Fixed now.
This commit is contained in:

committed by
Jeff Lowdermilk

parent
bba01c7a54
commit
6e98ce34ca
@@ -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")
|
||||
|
Reference in New Issue
Block a user