From e9955737ff619a98b58cb9864622acd5fbd5d666 Mon Sep 17 00:00:00 2001 From: Tommy Li Date: Tue, 25 Jun 2024 13:34:24 -0700 Subject: [PATCH] publish updates from the event watch --- pkg/kube/watcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kube/watcher.go b/pkg/kube/watcher.go index c72c4838..40c63d08 100644 --- a/pkg/kube/watcher.go +++ b/pkg/kube/watcher.go @@ -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