K9s: Sort by Age no longer works in pod view

Created on 21 Feb 2020  ยท  3Comments  ยท  Source: derailed/k9s






Describe the bug
With 0.16.0 & 0.16.1, sort by age in pod view no longer seems to be working.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'pod view'
  2. Type shift-a

Expected behavior
Expect pods to be sorted by how long they've been running, but the sort order seems random.

Screenshots

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Pod(prometheus)[3] โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ NAME                                 READY   RS STATUS   CPU  MEM %CPU/R  %MEM/R  %CPU/L  %MEM/L AGEโ†“   โ”‚
โ”‚ victoriametrics-0                    1/1      0 Running    4  344      0       8       0       0 21m    โ”‚
โ”‚ prometheus-adapter-5bf45b9fbf-tp7zj  1/1    457 Running    3   56      0       0       0       0 87d    โ”‚
โ”‚ influxdb-5c9bcdb674-tlnft            1/1   3631 Running    6 7826      0      76       0      47 14d    โ”‚
โ”‚                                                                                                         โ”‚
โ”‚                                                                                                         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜


โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Pod(prometheus)[3] โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ NAME                                 READY   RS STATUS   CPU  MEM %CPU/R  %MEM/R  %CPU/L  %MEM/L AGEโ†‘   โ”‚
โ”‚ influxdb-5c9bcdb674-tlnft            1/1   3631 Running    5 7113      0      69       0      43 14d    โ”‚
โ”‚ prometheus-adapter-5bf45b9fbf-tp7zj  1/1    457 Running    3   56      0       0       0       0 87d    โ”‚
โ”‚ victoriametrics-0                    1/1      0 Running    4  344      0       8       0       0 22m    โ”‚
โ”‚                                                                                                         โ”‚
โ”‚                                                                                                         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Versions (please complete the following information):

  • OS: OSX
  • K9s 0.16.0 & 0.16.1
  • K8s 1.14.9
bug

Most helpful comment

@stk0vrfl0w @willaustin Thank you both for your feedback - - Fixed v0.17.0!

All 3 comments

@stk0vrfl0w Thank you for reporting this! I'll fix in the next drop.

Might be helpful to note that if you switch to "wide" view (ctrl+w) then sorting works as expected.

@stk0vrfl0w @willaustin Thank you both for your feedback - - Fixed v0.17.0!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dalgibbard picture dalgibbard  ยท  3Comments

lfundaro picture lfundaro  ยท  4Comments

brentco picture brentco  ยท  4Comments

ctritten picture ctritten  ยท  3Comments

ChrisCooney picture ChrisCooney  ยท  3Comments