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

Panic if I try to kube login into a microk8s #4884

Closed
benarent opened this issue Nov 18, 2020 · 0 comments
Closed

Panic if I try to kube login into a microk8s #4884

benarent opened this issue Nov 18, 2020 · 0 comments
Assignees
Milestone

Comments

@benarent
Copy link
Contributor

Description

What happened:

SIGSEGV, we should provide an error message that is more user friendly

➜  tsh logout
Logged out all users from all proxies.

➜  tsh kube login microk8s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x148 pc=0x530e18d]

goroutine 1 [running]:
main.(*kubeLoginCommand).run(0xc000224740, 0xc000446f00, 0xa, 0xc00023ba01)
	/private/tmp/build-darwin-amd64/go/src/github.com/gravitational/teleport/tool/tsh/kube.go:239 +0xad
main.Run(0xc00003c090, 0x3, 0x3)
	/private/tmp/build-darwin-amd64/go/src/github.com/gravitational/teleport/tool/tsh/tsh.go:423 +0x63e5
main.main()
	/private/tmp/build-darwin-amd64/go/src/github.com/gravitational/teleport/tool/tsh/tsh.go:208 +0xdd

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Environment

  • Teleport version (use teleport version):

  • Tsh version (use tsh version):

  • OS (e.g. from /etc/os-release):

  • Where are you running Teleport? (e.g. AWS, GCP, Dedicated Hardware):

Browser environment

  • Browser Version (for UI-related issues):
  • Install tools:
  • Others:

Relevant Debug Logs If Applicable

  • tsh --debug
  • teleport --debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants