Skip to content

Commit

Permalink
publish updates from the event watch
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyzli committed Jun 25, 2024
1 parent 2668c43 commit a927d5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kube/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func (e *EventWatcher) OnAdd(obj interface{}) {
}

func (e *EventWatcher) OnUpdate(oldObj, newObj interface{}) {
// Ignore updates
event := newObj.(*corev1.Event)
e.onEvent(event)
}

// Ignore events older than the maxEventAgeSeconds
Expand Down

0 comments on commit a927d5d

Please sign in to comment.