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

Main view panel stuck in k8s contexts, < Ruroh? pod command not found > | multiple commands affected #3132

Closed
matsonkepson opened this issue Feb 18, 2025 · 13 comments

Comments

@matsonkepson
Copy link

matsonkepson commented Feb 18, 2025




Describe the bug

After running k9s, the context screen is displayed, and I cannot get through it.
The cow is saying, 'Ruroh? Pod command not found.'
However, everything works when you type 'pods.

To Reproduce
Steps to reproduce the behavior:

  1. Open k9s
  2. type ‘pod’ or with older version like 0.40.3 type pod and change view to pods
  3. open latest version or update to latest and run it

Expected behavior
App behaves like before, autocompletion kicks it and matches closes api-resource to typed-in

Screenshots

Image

Versions (please complete the following information):

  • OS: MacOS 15.3.1
  • K9s: 0.40.4
  • K8s: 1.30.8-eks

Additional context
So far i was not typing full api-resource name an was working just fine.

@rherzfeld
Copy link

:pods seems to work. Not sure if the change is intended.

@matsonkepson
Copy link
Author

matsonkepson commented Feb 18, 2025

It was working before, you were typing 'pod' and the closest matching kubernetes api-resource was matching immediately.

Whats more cow should say something like fzf of an opinions you can choose from imho...

@lukemaslany-next
Copy link

lukemaslany-next commented Feb 18, 2025

I have just upgraded to 0.40.4 and get a very similar issue - but when selecting a context I get the error:

 < Ruroh? `node` command not found >

Image

FWIW, the last view I had open prior to upgrading was nodes.

Versions (please complete the following information):
OS: Ubuntu 22.04
K9s Rev: v0.40.4
K8s Rev: v1.30.7

@fredczj
Copy link

fredczj commented Feb 18, 2025

I cannot even switch context. Some context are failing, with "deployment" command not found, like if there was kinda history somewhere that are not correctly read, restored or used…

This starts failing with v0.40.4 (here on macos)

@rherzfeld
Copy link

Yes, it seems as if the commands where changed but I don't see any documentation for it. When starting k9s you are redirected to the last screen/command with it's original name, which no longer exists.

I can work around this by selecting the context, dismissing the error and then switching to pods/nodes/deploy. It will get me into the selected context. Certainly bugged.

@DavidMakin
Copy link

found how to stop it appearing. When you get the error type :deploy or node or pod etc, then q! to save and quit. Reopen

@DanielCastronovo
Copy link

DanielCastronovo commented Feb 18, 2025

Same here, lot of K9S command not working anymore.
Working on 40.0.3 and fail on 40.0.4

@matsonkepson matsonkepson changed the title Main view panel stuck in k8s contexts, < Ruroh? pod command not found > Main view panel stuck in k8s contexts, < Ruroh? pod command not found > | multiple commands affected Feb 18, 2025
@carlottostromstedt
Copy link

I am also using 0.40.4 and i can get through the main view, but the commands fail in the same way.

Currently these commands are failing for me:

  • deployments
  • replicasets
  • statefulsets
  • daemonsets
  • jobs

@skarnl
Copy link

skarnl commented Feb 18, 2025

Coincidentally, today I decided to upgrade my k9s from 0.30-something to the latest version.
I used Homebrew, but after getting to 0.40.4 I received these weird notices after choosing a context at the start.

Glad I found that it was not my local setup - first tried to clear my cache etc.

Now downgraded to 0.40.3.

In case someone uses Homebrew, follow these steps
( originally from here: https://nelson.cloud/how-to-install-older-versions-of-homebrew-packages/ )

  1. uninstall k9s
 brew uninstall k9s
  1. download the 0.40.3 installer from brew-core:
 curl https://raw.githubusercontent.com/Homebrew/homebrew-core/c0e1de761a74ba637df68bec2a333966cba3c0de/Formula/k/k9s.rb > k9s.rb
  1. install k9s 0.40.3 using the file you just downloaded:
 brew install k9s.rb

⚠ notice we refer to the file we downloaded in step 2, k9s.rb - so NOT only k9s!
(you'll get some warnings, but it just uses the steps described in the .rb file)

  1. done, you now have version 0.40.3 again and can continue to do your actual job 🎉

@rherzfeld
Copy link

rherzfeld commented Feb 18, 2025

Could you not just use brew install k9s@0.40.3 to get the specific version?

@matsonkepson
Copy link
Author

matsonkepson commented Feb 18, 2025

@rherzfeld
i did switched to older version but the brew way is not working for me, so i have removed it and run below

mkdir -p ~/bin
curl -LO https://github.com/derailed/k9s/releases/download/v0.40.3/k9s_darwin_arm64.tar.gz
tar -xzf k9s_darwin_arm64.tar.gz
mv k9s ~/bin/

Don't forget to create bin folder in your home and add this to your ~/.zshrc

export PATH=$HOME/bin

@CheyiLin
Copy link

The simplest way to downgrade to 0.40.3 to fix this is:

wget https://raw.githubusercontent.com/Homebrew/homebrew-core/c0e1de761a74ba637df68bec2a333966cba3c0de/Formula/k/k9s.rb
brew reinstall --formula -f k9s.rb

@derailed
Copy link
Owner

Dup #3131

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

10 participants