-
Notifications
You must be signed in to change notification settings - Fork 5k
FR/crazy idea: delete context when minikube is stopped #9410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
not so crazy ;) |
/assign |
Thank you @prezha ! |
@tstromberg this could break the IDE users. per this request, #9001 @prezha please make sure, this does NOT delete the context if the user has specified |
@medyagh yes, the same logic still applies: if |
This is not nice. Now, as the context is deleted and recreated, a user needs to select a specific namespace he's working on every time he starts/stops the cluster. |
@jorgemoralespou you can use |
I was expecting that answer. Why would I want to keep the context active if the instance is stopped. When stopped what does make sense is unset, and only delete the context when minikube instance is deleted, hence, previous behavior. |
i don't think the issue is with deleting/recreating the context when minikube stops/starts, what we potentially could do is additionally saving/restoring also the default namespace using the minikube's cluster/kubernetes config |
Yes, you could save/restore the namespace. But IMHO the fact that a namespace is deleted is more confusing than the fact that minikube is stopped and you have a context you can't connect to until you start minikube. |
The context isn't useful if minikube is stopped, and can mislead folks into talking to a stopped cluster. What if, instead of unselecting it as a default, we just deleted it.
The text was updated successfully, but these errors were encountered: