mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Merge pull request #20271 from liggitt/event_panic
Handle panic in async event reporting
This commit is contained in:
@@ -262,6 +262,7 @@ func (recorder *recorderImpl) generateEvent(object runtime.Object, timestamp unv
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
// NOTE: events should be a non-blocking operation
|
// NOTE: events should be a non-blocking operation
|
||||||
|
defer util.HandleCrash()
|
||||||
recorder.Action(watch.Added, event)
|
recorder.Action(watch.Added, event)
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user