From f66a2069f1b26ff9987b008ba4b0c91ac3b682cc Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 5 Sep 2019 16:58:06 +0200 Subject: Update buildah to v1.11.0 Vendor in the latest changes for buildah to apply the implemented features here as well. Signed-off-by: Sascha Grunert --- vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'vendor/k8s.io/apimachinery/pkg/util/runtime') diff --git a/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go b/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go index 3c886f46c..c7348129a 100644 --- a/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go +++ b/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go @@ -40,11 +40,7 @@ var PanicHandlers = []func(interface{}){logPanic} // called in case of panic. HandleCrash actually crashes, after calling the // handlers and logging the panic message. // -// TODO: remove this function. We are switching to a world where it's safe for -// apiserver to panic, since it will be restarted by kubelet. At the beginning -// of the Kubernetes project, nothing was going to restart apiserver and so -// catching panics was important. But it's actually much simpler for monitoring -// software if we just exit when an unexpected panic happens. +// E.g., you can provide one or more additional handlers for something like shutting down go routines gracefully. func HandleCrash(additionalHandlers ...func(interface{})) { if r := recover(); r != nil { for _, fn := range PanicHandlers { -- cgit v1.2.3-54-g00ecf