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

selection issue: selection of namespace is changed automatically #1593

Closed
olwe0002 opened this issue Jun 14, 2022 · 6 comments
Closed

selection issue: selection of namespace is changed automatically #1593

olwe0002 opened this issue Jun 14, 2022 · 6 comments

Comments

@olwe0002
Copy link




Describe the bug
The selection of a resource, especially of a selected namespace, changes on its own in some cases. This is dangerous as further actions (e.g. delete) might be done to different resources.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ':ns'
  2. select the last namespace in the list with your arrow keys (key-down)
  3. wait 1-2 seconds
  4. See that now the second last namespace is selected, not the last one any more

Expected behavior
the selection done by the user is remaining forever and not changed by k9s

Versions (please complete the following information):

  • k9s v0.25.18
  • both Windows and Linux X86-64 are affected

Additional context
not sure if namespaces is the only affected resource type

@slimus
Copy link
Collaborator

slimus commented Jun 14, 2022

Correction: the problem is only if you have a view with multiple pages. Confirm this bug

@olwe0002
Copy link
Author

Hi @slimus, what do you mean with multiple pages ? something like pagination? never saw this feature in k9s.

For me this error occurs at the namespaces, also when there are less than 10 entries. But only if the last entry is selected.

@slimus
Copy link
Collaborator

slimus commented Jun 15, 2022

@olwe0002 yep, pagination. Actually, I've tested pods, and deployments and I don't have this problem there. But I have this problem with ns view. Could you please confirm it?

@filiprafaj
Copy link

hey, I also experience this - when the selection is on the last ns, it automatically moves one row up

@derailed
Copy link
Owner

@olwe0002 - Good catch! Thank you. Fixed v0.25.19

@olwe0002
Copy link
Author

olwe0002 commented Aug 9, 2022

works like a charm, thank you very much

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

4 participants