[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:
Nikita B
2025-09-30 19:39:38 +02:00
parent 4116c15c8f
commit d98076bdc0

View File

@@ -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)
}()