Skip to content

Commit

Permalink
Update pkg/kube_events_manager/resource_informer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nabokihms authored Aug 17, 2023
1 parent 4d68ab2 commit 29a6b17
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/kube_events_manager/resource_informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,9 @@ func (ei *resourceInformer) HandleWatchEvent(oldObject, object interface{}, even

if !ei.Monitor.KeepFullObjectsInMemory {
objFilterRes.RemoveFullObject()
} else if ei.Monitor.KeepFullObjectsInMemory {
if oldObj != nil {
objFilterRes.OldObject = oldObj
}
} else if oldObj != nil {
objFilterRes.OldObject = oldObj
}
}

// Do not fire Added or Modified if object is in cache and its checksum is equal to the newChecksum.
Expand Down

0 comments on commit 29a6b17

Please sign in to comment.