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

hotkeys ignored #2724

Open
aborrero opened this issue May 31, 2024 · 2 comments
Open

hotkeys ignored #2724

aborrero opened this issue May 31, 2024 · 2 comments
Labels
question Further information is requested

Comments

@aborrero
Copy link




Describe the bug
I created a file with hotkeys configuration like this:

---
hotKeys:
  shift-1:
    shortCut: Shift-1
    description: show namespaces
    command: namespaces

  shift-2:
    shortCut: Shift-2
    description: show deployments
    command: dp

The first hotkey works (shift-1) the second does nothing.

They both show up in the help <?> panel.

Setting k9s in trace mode doesn't show any relevant information in the log file.

To Reproduce

Create file $XDG_DATA_HOME/k9s/hotkeys.yaml with the aforementioned content.

Start k9s, and try the different hotkeys.

Historical Documents
N/A

Expected behavior
All hotkeys would work.

Screenshots
N/A

Versions (please complete the following information):

  • OS: Debian
  • K9s: 0.32.4
  • K8s: 1.24.17

Additional context
N/A

@derailed derailed added the question Further information is requested label Jun 1, 2024
@derailed
Copy link
Owner

derailed commented Jun 1, 2024

Hum... Strange! I've cp your hotkeys spec on v0.32.4 and it works as prescribed??
Did you check the k9s debug logs for potential load issues or conflicts?

@aborrero
Copy link
Author

aborrero commented Jun 3, 2024

The trace-level logs:

10:29AM INF 🐶 K9s starting up...
10:29AM ERR Fail to locate metrics-server error="No metrics api group metrics.k8s.io found on cluster"
10:29AM TRC [CAN] v1/namespaces(""/"") <[list]>
10:29AM TRC   Spec: v1.SelfSubjectAccessReviewSpec{ResourceAttributes:(*v1.ResourceAttributes)(0xc000eda310), NonResourceAttributes:(*v1.NonResourceAttributes)(nil)}
10:29AM TRC   Auth: true [""]
10:29AM TRC   <<<nil>>>
10:29AM DBG Active Context "kind-toolforge"
10:29AM INF ✅ Kubernetes connectivity
10:29AM DBG [Skin] Loading global skin ("kanagawa")
10:29AM DBG Loading skin file: "/home/arturo/.config/k9s/skins/kanagawa.yaml"
10:29AM DBG Factory START with ns `"api-gateway"
10:29AM TRC [CAN] v1/nodes(""/"") <[list]>
10:29AM TRC   Spec: v1.SelfSubjectAccessReviewSpec{ResourceAttributes:(*v1.ResourceAttributes)(0xc000e84d20), NonResourceAttributes:(*v1.NonResourceAttributes)(nil)}
10:29AM TRC   Auth: true [""]
10:29AM TRC   <<<nil>>>
10:29AM DBG Fetching latest k9s rev...
10:29AM DBG K9s latest rev: "v0.32.4"
10:29AM TRC [CAN] apiextensions.k8s.io/v1/customresourcedefinitions(""/"") <[list]>
10:29AM TRC   Spec: v1.SelfSubjectAccessReviewSpec{ResourceAttributes:(*v1.ResourceAttributes)(0xc0003222a0), NonResourceAttributes:(*v1.NonResourceAttributes)(nil)}
10:29AM TRC   Auth: true [""]
10:29AM TRC   <<<nil>>>
10:29AM DBG [Skin] Loading global skin ("kanagawa")
10:29AM DBG Loading skin file: "/home/arturo/.config/k9s/skins/kanagawa.yaml"
10:29AM TRC [CAN] v1/namespaces("api-gateway"/"") <[list]>
10:29AM TRC   Spec: v1.SelfSubjectAccessReviewSpec{ResourceAttributes:(*v1.ResourceAttributes)(0xc00031c1c0), NonResourceAttributes:(*v1.NonResourceAttributes)(nil)}
10:29AM TRC   Auth: true [""]
10:29AM TRC   <<<nil>>>
10:29AM TRC Refresh [v1/namespaces](0) 13.182µs 
10:29AM TRC Refresh [v1/namespaces](21) 479.695µs 
10:29AM TRC Refresh [v1/namespaces](21) 765.295µs 
10:29AM TRC Refresh [v1/namespaces](21) 609.77µs 
10:29AM TRC Refresh [v1/namespaces](21) 803.13µs 
10:29AM TRC Refresh [v1/namespaces](21) 288.609µs 
10:29AM TRC Refresh [v1/namespaces](21) 769.23µs 
10:29AM TRC Refresh [v1/namespaces](21) 404.898µs 
10:29AM TRC Refresh [v1/namespaces](21) 888.605µs 
10:29AM TRC Refresh [v1/namespaces](21) 250.267µs 
10:29AM TRC Refresh [v1/namespaces](21) 411.942µs 
10:29AM TRC Refresh [v1/namespaces](21) 995.492µs 
10:29AM TRC Refresh [v1/namespaces](21) 244.793µs 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants