mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Handle panic in async event reporting
This commit is contained in:
parent
4e27ed67e4
commit
4ba6a2541b
@ -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)
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user