Merge pull request #124297 from hshiina/evented-timestamp

EventedPLEG: Pass event created timestamp correctly to cache
This commit is contained in:
Kubernetes Prow Robot 2024-09-10 18:41:00 +01:00 committed by GitHub
commit 386a6af12b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
} }
} }