snowjs / cli

CLI tool for dead-simple serverless Docker deployments on managed Kubernetes services. A self-hosted PaaS. ⚡️
https://github.com/snowjs/cli/tree/secrets
MIT License
409 stars 10 forks source link

Catch error if minikube is not started #11

Open sean-nicholas opened 5 years ago

sean-nicholas commented 5 years ago

I'm getting this error if minikube is stopped on snow create. I see that there is a catch around this command. Don't know why this error is printed. The script continues execution.

Which cloud provider are you hosting with? (minikube,gcp,digitalocean) [m,g,d] m Note: Minikube is for development purposes only. minikube status host: Stopped kubelet: apiserver: kubectl: Command failed: minikube status Error: Command failed: minikube status

at ChildProcess.exithandler (child_process.js:281:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)Starting Minikube. This may take a minute.

minikube start o minikube v0.35.0 on linux (amd64) i Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one. : Restarting existing virtualbox VM for "minikube" ...