From 5d9d82e7dcb31009d2db22460a5f9f5ea18652ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ak=C4=B1n?= Date: Sat, 6 Nov 2021 13:54:58 +0300 Subject: [PATCH] remove managed fields from event becasue its useless --- deploy/02-deployment.yaml | 2 +- pkg/kube/watcher.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/02-deployment.yaml b/deploy/02-deployment.yaml index 69ae610b..7d208058 100644 --- a/deploy/02-deployment.yaml +++ b/deploy/02-deployment.yaml @@ -14,7 +14,7 @@ spec: serviceAccountName: event-exporter containers: - name: event-exporter - image: ghcr.io/opsgenie/kubernetes-event-exporter:v0.10 + image: ghcr.io/opsgenie/kubernetes-event-exporter:v0.11 imagePullPolicy: IfNotPresent args: - -conf=/data/config.yaml diff --git a/pkg/kube/watcher.go b/pkg/kube/watcher.go index fec0224f..7ef0fc04 100644 --- a/pkg/kube/watcher.go +++ b/pkg/kube/watcher.go @@ -68,6 +68,7 @@ func (e *EventWatcher) onEvent(event *corev1.Event) { ev := &EnhancedEvent{ Event: *event.DeepCopy(), } + ev.Event.ManagedFields = nil labels, err := e.labelCache.GetLabelsWithCache(&event.InvolvedObject) if err != nil {