mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Pass event created timestamp correctly to cache
`CreatedAt` timestamp of `ContainerEventResponse` should be passed as nanoseconds to `time.Unix()`.
This commit is contained in:
parent
cae35dba5a
commit
76128586a2
@ -264,7 +264,7 @@ func (e *EventedPLEG) processCRIEvents(containerEventsResponseCh chan *runtimeap
|
|||||||
}
|
}
|
||||||
shouldSendPLEGEvent = true
|
shouldSendPLEGEvent = true
|
||||||
} else {
|
} else {
|
||||||
if e.cache.Set(podID, status, err, time.Unix(event.GetCreatedAt(), 0)) {
|
if e.cache.Set(podID, status, err, time.Unix(0, event.GetCreatedAt())) {
|
||||||
shouldSendPLEGEvent = true
|
shouldSendPLEGEvent = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user