From d98076bdc0d794758db317c948550708d0a5cebb Mon Sep 17 00:00:00 2001 From: Nikita B Date: Tue, 30 Sep 2025 19:39:38 +0200 Subject: [PATCH] [apiserver] [126379]: replace call to HandleCrash with call to HandleCrashWithContext where ctx is available for caller: remove obsolete comment Signed-off-by: Nikita B --- staging/src/k8s.io/apiserver/pkg/server/hooks.go | 1 - 1 file changed, 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/server/hooks.go b/staging/src/k8s.io/apiserver/pkg/server/hooks.go index c52ed28f748..3a828061e89 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/hooks.go +++ b/staging/src/k8s.io/apiserver/pkg/server/hooks.go @@ -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) }()