Bug 1857420
| Summary: | events are not sortable | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Peter Larsen <plarsen> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED DUPLICATE | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.5 | CC: | aos-bugs, jokerman, mfojtik, sttts, tnozicka |
| Target Milestone: | --- | ||
| Target Release: | 4.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-08-11 11:01:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Kube-apiservrer does not sort, but oc does (should). Moving over. *** This bug has been marked as a duplicate of bug 1857268 *** |
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