Make getKubeConfig public to allow it for external consumption

This commit is contained in:
Michal Fojtik
2014-11-11 16:02:39 +01:00
parent 30fcf24131
commit 0c76c44972
2 changed files with 5 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ func NewCmdProxy(out io.Writer) *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
port := GetFlagInt(cmd, "port")
glog.Infof("Starting to serve on localhost:%d", port)
server, err := kubectl.NewProxyServer(GetFlagString(cmd, "www"), getKubeConfig(cmd), port)
server, err := kubectl.NewProxyServer(GetFlagString(cmd, "www"), GetKubeConfig(cmd), port)
checkErr(err)
glog.Fatal(server.Serve())
},