Bug 1857420 - events are not sortable
Summary: events are not sortable
Keywords:
Status: CLOSED DUPLICATE of bug 1857268
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.6.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-15 20:14 UTC by Peter Larsen
Modified: 2020-08-11 11:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-11 11:01:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Larsen 2020-07-15 20:14:06 UTC
Description of problem:
We used to be able to sort events by adding --sort-by='{.lastTimestamp}' to the "oc get events" but with 4.5.1 this no longer seems to work:

oc get events --sort-by='{.eventTime}'
F0715 16:09:45.682600   89491 sorter.go:353] Field {.eventTime} in [][][]reflect.Value is an unsortable type: interface, err: unsortable type: <nil>

All the date fields in the event record report the same error.

Version-Release number of selected component (if applicable):
$ oc version
Client Version: 4.5.1
Server Version: 4.5.1
Kubernetes Version: v1.18.3+8b0a82f

How reproducible:
All the time

Comment 1 Stefan Schimanski 2020-08-03 12:32:18 UTC
Kube-apiservrer does not sort, but oc does (should). Moving over.

Comment 2 Maciej Szulik 2020-08-11 11:01:56 UTC

*** This bug has been marked as a duplicate of bug 1857268 ***


Note You need to log in before you can comment on or make changes to this bug.