k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Can not recognize error message when trying to execute invalid operation in some cases

Open sgasho opened this issue 1 year ago • 0 comments




Describe the bug I tried to open shell via "s" command on a pod but immediately shutdown.(this behavior is expected because sh is not available for the pod but I realized that later). then some error messages has shown up but immediately disappeared so I could not recognize them.

To Reproduce

Example

  1. kubectl run --image gcr.io/google-samples/hello-app:1.0 --restart Never helloworld
  2. open k9s
  3. find helloworld pod then press "s" (which means to try to open shell)

Historical Documents

Expected behavior validate the command first then show some error messages below. in this case, k9s opened the shell screen for a moment but this behavior is not needed.

Screenshots

https://github.com/derailed/k9s/assets/142221789/65a429a1-6426-4bde-b890-8559ae626b5b

Versions (please complete the following information):

  • OS: m1 macOS 14.5
  • K9s: 0.32.5
  • K8s: 1.26.3

Additional context

sgasho avatar Jun 26 '24 14:06 sgasho