Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to switch between contextsΒ #756

@srilumpa

Description

@srilumpa




Describe the bug
Switching between contexts hangs up

To Reproduce
Steps to reproduce the behavior:

  1. Start k9s in a specific context k9s --context my-context-1
  2. Access the context list :ctx
  3. Select one context to switch into
  4. k9s interface stalls, need to kill it (with kill <k9s_pid>)

Expected behavior
No stalling, able to switch to the targeted context.

Versions (please complete the following information):

  • OS: Ubuntu 19.10
  • K9s 0.20.4 (commit: 51c6f70)
  • K8s Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Additional context
The targeted context is reachable since I can successfully execute kubectl get nodes on it

Here are the logs:

2:40PM INF 🐢 K9s starting up...
2:40PM DBG Active Context "my-context-1"
2:40PM INF βœ… Kubernetes connectivity
2:40PM DBG [Config] Saving configuration...
2:40PM INF No context specific skin file found -- /home/mad/.k9s/my-context-1_skin.yml
2:40PM INF No skin file found -- /home/mad/.k9s/skin.yml. Loading stock skins.
2:40PM DBG CURRENT-NS "" -- No active namespace specified
2:40PM INF No namespace specified using cluster default namespace
2:40PM DBG Factory START with ns `""
2:40PM DBG CustomView watching `/home/mad/.k9s/views.yml
2:40PM ERR Custom view load failed /home/mad/.k9s/views.yml error="open /home/mad/.k9s/views.yml: no such file or directory"
2:40PM ERR CustomView watcher failed error="no such file or directory"
2:40PM DBG [Config] Saving configuration...
2:40PM DBG [Config] Saving configuration...
2:40PM DBG TABLE-WATCH "contexts"
2:40PM DBG SWITCH CTX "contexts"--"minikube"
2:40PM DBG Switching context "minikube"
2:40PM DBG TABLE-MODEL canceled -- "contexts"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions