Handle home path on Windows

pull/258/head
Jimmi Dyson 2016-07-02 21:30:36 +01:00
parent 15f63731af
commit 759f906cf1
No known key found for this signature in database
GPG Key ID: 978CD4AF4C1E87F5
1 changed files with 5 additions and 3 deletions

View File

@ -17,19 +17,21 @@ limitations under the License.
package constants
import (
"os"
"path/filepath"
"k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
"k8s.io/kubernetes/pkg/util/homedir"
)
// MachineName is the name to use for the VM.
const MachineName = "minikubeVM"
// Fix for windows
var Minipath = filepath.Join(os.Getenv("HOME"), ".minikube")
var Minipath = filepath.Join(homedir.HomeDir(), ".minikube")
// TODO: Fix for windows
// KubeconfigPath is the path to the Kubernetes client config
var KubeconfigPath = filepath.Join(os.Getenv("HOME"), ".kube", "config")
var KubeconfigPath = clientcmd.RecommendedHomeFile
// MinikubeContext is the kubeconfig context name used for minikube
const MinikubeContext = "minikube"