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
+1 -1
View File
@@ -60,7 +60,7 @@ func DumpInfo(c *cli.Context) error {
}
client := util.GetApiClient(util.GetServerUrl())
_, k8sClient := util.GetKubernetesClient(util.GetKubeConfigPath())
_, k8sClient := util.GetKubernetesClient()
ress := map[string]resources.Resource{
// kubernetes info