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 deploy to detect no ~/.kube/config is there and to download + install minikube and run minikube start? #108

Open jstrachan opened 8 years ago

jstrachan commented 8 years ago

this came up in this idea: https://github.com/fabric8io/fabric8-maven-plugin/issues/299

it'd be nice to simplify the work folks have to do to get fabric8 going. So it'd be nice to run...

gofabric8 deploy -y

or to force minishift:

gofabric8 deploy -y --cluster=openshift

Then it'd detect no ~/.kube/config and download minikube/minishift (if not already downloaded - or update if required using the built in update mechanism), then run mini* start - passing in the right arguments (e.g. forcing xhyve on OS X if not enabled yet in minikube).

Given the context name is minikube or minishift; we should be able to know if minikube or minishift was previously created/installed so that if the cluster is stopped for any reason (e.g. the user reboots) we'd know to do the 'minikube start ....' stuff if its not currently running

jstrachan commented 8 years ago

we've got gofabric8 install and soon will have gofabric8 start so the deploy command could

So that from a clean install, folks could run gofabric8 deploy and it'd just work