Skip to content

Commit

Permalink
Record Kube event first/last timestamp in the resulting intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoodwin committed Apr 18, 2024
1 parent e5c2630 commit 9a5fc5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/monitortests/testframework/watchevents/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ func recordAddOrUpdateEvent(
}
return
}

message = message.WithAnnotation("FirstTimestamp", obj.FirstTimestamp.Format(time.RFC3339))
message = message.WithAnnotation("LastTimestamp", obj.LastTimestamp.Format(time.RFC3339))

// We start with to equal to from, the majority of kube event intervals had this, and these get filtered out
// when generating spyglass html. For interesting/pathological events, we're adding a second, which causes them
// to get included in the html.
Expand Down

0 comments on commit 9a5fc5b

Please sign in to comment.