mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
[apiserver] [126379]: replace call to HandleCrash with call to HandleCrashWithContext where ctx is available for caller: remove obsolete comment
Signed-off-by: Nikita B <n2h9z4@gmail.com>
This commit is contained in:
@@ -195,7 +195,6 @@ func (s *GenericAPIServer) isPostStartHookRegistered(name string) bool {
|
||||
func runPostStartHook(name string, entry postStartHookEntry, context PostStartHookContext) {
|
||||
var err error
|
||||
func() {
|
||||
// don't let the hook *accidentally* panic and kill the server
|
||||
defer utilruntime.HandleCrashWithContext(context)
|
||||
err = entry.hook(context)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user