fabric8io / gofabric8

CLI used when working with fabric8 running on Kubernetes or OpenShift
https://fabric8.io/
Apache License 2.0
147 stars 72 forks source link

gofabric8 can't start minikube on Windows #635

Open samolisov opened 6 years ago

samolisov commented 6 years ago

Description

I have the minikube.exe on my Windows 7 machine. The minicluster starts fine if I do minikube start. But if the cluster is stopped, I get the following exceptions:

# C:\dev\ibm\wlp-on-bluemix-demo>gofabric8.exe start
Unable to get C:\Users\psamolysov\.fabric8\bin\minikube.exe status, : minikube: Stopped
cluster:
kubectl:
C:\dev\ibm\liberty-microprofile-demo>gofabric8.exe status
minikube: Stopped
cluster:
kubectl:
Unable get the status of the local cluster exit status 1
C:\dev\ibm\liberty-microprofile-demo>gofabric8.exe docker-env
E1214 11:35:19.831710    4796 env.go:330] Error setting machine env variable(s): Error getting ip from host: Host is not running
Unable to set the docker environment exit status 1

As a result, I must have a started minicluster before working with gofabric8 and the fabric8-maven-plugin goals.

Can gofabric8 automatically send the minikube start if the minicluster is not already started?