Skip to content
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

On Mac, Using minikube - click crashes when trying to set context #102

Closed
nagoclpl opened this issue Mar 3, 2019 · 1 comment
Closed

Comments

@nagoclpl
Copy link

nagoclpl commented Mar 3, 2019

Hello,

I am on Mac.

I have started minikube. It has started successfully.

I have tried to set the context to minikube in click.

When trying to do so, click crashes.

Here's full details on the environment and the crash including backtrace ...

$
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.3
BuildVersion:	18D109
$
$ minikube status
host: Running
kubelet: Running
apiserver: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
$
$ RUST_BACKTRACE=1 target/release/click 
[none] [none] [none] > context minikube
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', src/libcore/result.rs:997:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::continue_panic_fmt
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::result::unwrap_failed
   9: click::certs::try_ip_to_name
  10: click::kube::Kluster::new
  11: click::config::kube::Config::cluster_for_context
  12: click::Env::set_context
  13: <click::cmd::Context as click::cmd::Cmd>::exec
  14: click::main
  15: std::rt::lang_start::{{closure}}
  16: std::panicking::try::do_call
  17: __rust_maybe_catch_panic
  18: std::rt::lang_start_internal
  19: main
$

Please help!

Thanks
Naga

@nicklan
Copy link
Collaborator

nicklan commented Mar 5, 2019

Yep. See #98 for a workaround. I actually do have a hacky fix for this, and will push something that handles this case as soon as I find time to clean it up.

@nicklan nicklan closed this as completed Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants