Support KUBECONFIG with multiple kube config files (#1126)

* support KUBECONFIG with multiple kube config files
* use a more cross-platform friendly implementation to get the current users home dir
This commit is contained in:
Jon Carl
2019-04-01 15:25:05 +08:00
committed by Ta-Ching Chen
parent b7a41cbd89
commit 24600c20c5
4 changed files with 40 additions and 29 deletions
+2 -2
View File
@@ -754,8 +754,8 @@ func fnTest(c *cli.Context) error {
routerURL := os.Getenv("FISSION_ROUTER")
if len(routerURL) == 0 {
// Portforward to the fission router
localRouterPort := util.SetupPortForward(util.GetKubeConfigPath(),
util.GetFissionNamespace(), "application=fission-router")
localRouterPort := util.SetupPortForward(util.GetFissionNamespace(),
"application=fission-router")
routerURL = "127.0.0.1:" + localRouterPort
} else {
routerURL = strings.TrimPrefix(routerURL, "http://")