-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Many local commands block on network. #479
Comments
Related, previously: #408 |
You can add a |
Awesome, that's a solution to my issues. Thanks! I just checked doing it in both Is this also settable by flag or env var, if I'm writing a script for other people to use, and don't want to alter their homedir contents? |
Glad that worked for you. As far as the flag/env, its not possible right now but we could consider that for a future release. I'll let @dlorenc and @aaron-prindle weigh in on that. |
Yeah it makes sense to me, viper allows binding env vars, right? On Fri, Aug 12, 2016, 11:55 AM Matt Rickard notifications@github.com
|
Yep - viper is super flexible & would support automatic binding something like |
Having it only check occasionally would also be useful, and would make scripts faster the majority of the time too? Python's
|
Yes, we should make the version check asynchronous. The check should only happen once every 24 hours already, but if you run many commands at the same time it's possible they'd all do the check. |
Ref: #671 |
Issues go stale after 30d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
The online version check, placed in the default
PreRun
hooks in the command parser, makes many operations that should be purely local (and consistently fast) into potentially long-blocking calls.Expected: commands like
minikube stop
should be able to stop a local VM immediately. It should not depend on whether I'm on flaky cafe wifi ;)This may accumulate into a significant performance problem if one scripts a series of interactions with minikube -- a half-dozen minikube commands multiplied by a network latency that varies between ~0s and ~15s (my life right now, I know, I know, but it's true) makes what should be a fast and beautiful user story into several minutes of waiting.
Can I disable version checking with a flag or env var of some kind, so my script over $n minikube commands doesn't need to make $n identical network requests?
The text was updated successfully, but these errors were encountered: