mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Merge pull request #124297 from hshiina/evented-timestamp
EventedPLEG: Pass event created timestamp correctly to cache
This commit is contained in:
commit
386a6af12b
@ -267,7 +267,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