Skip to content

Commit

Permalink
Adjust timestamp from condition transition
Browse files Browse the repository at this point in the history
Timestamps tend to be in units of seconds, so when they arrive
promptly we use local time which gives a more indicative display
in the tracing viewer.
  • Loading branch information
bboreham committed Apr 15, 2021
1 parent 9d2c440 commit d76940c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/events/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func (w *watchInfo) checkConditionUpdates(obj *unstructured.Unstructured, ew eve
Message: message,
Reason: reason,
}
adjustEventTime(&event, time.Now())

err = ew.handleEvent(context.TODO(), &event)
if err != nil {
Expand Down

0 comments on commit d76940c

Please sign in to comment.