Merge pull request #258 from jimmidyson/homedir

Handle home path on Windows
pull/260/merge
dlorenc 2016-07-02 16:05:32 -07:00 committed by GitHub
commit f5e3d0778d
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"