k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Sort by age (shift+a) is broken for CRDs

Open EladDolev opened this issue 3 years ago • 8 comments




Describe the bug Sorting by age (shift+a) seems to be working for native K8s resources like Pod Deployment etc. but broken for (all ?) custom resources Was still working on v0.26.0

Screenshots

Versions (please complete the following information):

  • OS: OSX
  • K9s: 0.26.3 (also broken on 0.26.2)
  • K8s: 1.22.0

Thanks !

EladDolev avatar Aug 04 '22 17:08 EladDolev

Hi @EladDolev! Is it a list of CRDs? It works for me...

slimus avatar Aug 11 '22 13:08 slimus

Hi @slimus ! Not sure I understand the question, but if I go to a screen of a CRD of some sort, for example ServiceMonitor and try to sort by age I experience this bug I won't be visible if all of the resources are X seconds or X minutes old. Need to have a mix.

EladDolev avatar Aug 20 '22 07:08 EladDolev

@EladDolev thanks! I've added your case in test https://github.com/slimus/k9s/commit/dd8cfbc7177ee3266ddf592f10e39caa4a126ed2. It looks fine. And I can't reproduce it in my cluster. Can you share kubectl get crd next time?

slimus avatar Aug 23 '22 15:08 slimus

Hi @slimus

The "equivalent" kubectl command would be kubectl get sealedsecrets.bitnami.com --sort-by=.metadata.creationTimestamp for example

Thanks !

EladDolev avatar Aug 25 '22 09:08 EladDolev

Still occurring with latest version :cry:

Screen Shot 2022-09-25 at 7 11 20 PM

EladDolev avatar Sep 25 '22 16:09 EladDolev