Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
remove managed fields from event becasue its useless
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaakin-atl committed Nov 6, 2021
1 parent b3e76c6 commit 5d9d82e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/02-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkg/kube/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5d9d82e

Please sign in to comment.