Merge pull request #78041 from yastij/fix-lastTimeObserved

update LastObservedTime instead of eventTime
This commit is contained in:
Kubernetes Prow Robot 2019-05-17 18:57:54 -07:00 committed by GitHub
commit b6f51d16d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ func (e *eventBroadcasterImpl) recordToSink(event *v1beta1.Event, clock clock.Cl
if isIsomorphic {
if isomorphicEvent.Series != nil {
isomorphicEvent.Series.Count++
isomorphicEvent.EventTime = metav1.MicroTime{Time: clock.Now()}
isomorphicEvent.Series.LastObservedTime = metav1.MicroTime{Time: clock.Now()}
return nil
}
isomorphicEvent.Series = &v1beta1.EventSeries{