From 40bd9077bb6db02fbbcdc3521bedf7fcbe906dbe Mon Sep 17 00:00:00 2001 From: niqdev Date: Fri, 20 Oct 2023 00:44:13 +0100 Subject: [PATCH] handle interrupts --- README.md | 8 ++------ pkg/box/docker/docker.go | 22 +++++++--------------- pkg/box/docker/events.go | 12 ++++++++++++ pkg/box/kubernetes/events.go | 16 ++++++++++++++++ pkg/box/kubernetes/kubernetes.go | 31 ++++++++++++++++++++++++++++++- pkg/client/docker/client.go | 13 ++++--------- pkg/client/docker/options.go | 1 - pkg/client/kubernetes/client.go | 10 ++-------- pkg/task/kubernetes/events.go | 4 ++++ pkg/task/kubernetes/kubernetes.go | 2 +- pkg/util/interrupt.go | 17 +++++++++++++++++ 11 files changed, 95 insertions(+), 41 deletions(-) create mode 100644 pkg/util/interrupt.go diff --git a/README.md b/README.md index cd2c15a..3f1e1cc 100644 --- a/README.md +++ b/README.md @@ -302,14 +302,12 @@ Credit should go to all the authors and maintainers for their open source tools,