GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
414 stars 111 forks source link

[Feature] Start minikube from "Switch current context" in command palette #432

Open kelsk opened 3 years ago

kelsk commented 3 years ago

Use case [What are you trying to do that our extension doesn't let you?]

I'd like to start minikube and switch current context from the command palette instead of using the minikube status bar.

Feature [What would help?]

Currently, after selecting the Run on Kubernetes command, the user is prompted to select the context by clicking "Yes" or "Switch current context".

Screenshot of prompt with current context set

This is where I'd like to be able to select minikube.

If the user selects "Switch Current Context", the resulting dialog could list all the user's clusters (as in the current ui) and additionally it could provide the options: "Add a new or existing cluster" and "Run locally using minikube".

Screenshot of prompt with no context set

Here's a gif of my ideal flow:

minikube-plz

sivakku commented 3 years ago

The stop clears the context and hence it doesn't show in the switch context, The minkube task https://github.com/kubernetes/minikube/issues/9001 exposed the keep active context through a flag. @glouischandra - Do you know if we pass this flag to be true while stopping the minikube cluster?