mirror of
https://github.com/resmoio/kubernetes-event-exporter.git
synced 2026-08-24 01:06:22 +00:00
modify lasttime stamp to 5 seconds
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ func (e *EventWatcher) OnUpdate(oldObj, newObj interface{}) {
|
||||
func (e *EventWatcher) onEvent(event *corev1.Event) {
|
||||
// TODO: Re-enable this after development
|
||||
// It's probably an old event we are catching, it's not the best way but anyways
|
||||
if time.Since(event.LastTimestamp.Time) > time.Second*60 {
|
||||
if time.Since(event.LastTimestamp.Time) > time.Second*5 {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user