-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When changing contexts and you make a typo, k9s crashes and FTL reported in log.
To Reproduce
Steps to reproduce the behavior:
- Change context -
:ctx some typo here - k9s crashes
- View log and find FTL line -
11:46AM FTL Unable to connect to api server error="context \"thisdoesnotexist\" does not exist"
Expected behavior
A message in k9s explaining that the context does not exist, this would help the user see the typo and enter it correctly. -
OR
[Feature Req] Changing contexts bring up a menu of the available contexts found in a users .kube/config file, then the user can simply type the # of the context or scroll up/down and press enter to choose the context.
Versions (please complete the following information):
- OS: OSX 10.14.6
- K9s 1.14
- K8s Any
Additional context
Log -
11:46AM INF 🐶 K9s starting up...
11:46AM DBG Active Context "blah"
11:46AM DBG Setting active ns "default"
11:46AM DBG Connecting to API Server https://somek8scluster
11:46AM INF ✅ Kubernetes connectivity
11:46AM DBG [Config] Saving configuration...
11:46AM DBG Loading raw config from flags...
11:46AM INF No context specific skin file found -- /blah/skin.yml
11:46AM INF No skin file found -- /blah/skin.yml. Loading stock skins.
11:46AM INF No benchmark config file found, using defaults.
11:46AM DBG Factory START with ns `"default"
11:46AM DBG Setting active ns "default"
11:46AM INF Viewing charts...
11:46AM DBG [Config] Saving configuration...
11:46AM DBG BROWSER started!
11:46AM DBG BROWSER Stopped!
11:46AM DBG Model canceled -- "charts"
11:46AM FTL Unable to connect to api server error="context \"thisdoesnotexist\" does not exist"
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working