From a0ad1f2ad46507f13a16d342b9ccf35a38bae3d5 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 11 Mar 2022 16:10:32 +0100 Subject: remove unneeded k8s code There is a lot of unneeded code, k8s is the by far the biggest dependency in podman. We should remove as much as possible so that we only have the stuff left that we use. This is just a quick skim over the code which removes a lot of the generated code and many packages that are now unused. I know that this will be impossible to properly review. I will try to make smaller changes in follow up work. Right now this reduces about 8 MB in binary size!!! [NO NEW TESTS NEEDED] Hopefully existing tests will catch any problems. Signed-off-by: Paul Holzinger --- pkg/kubeutils/resize.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg/kubeutils') diff --git a/pkg/kubeutils/resize.go b/pkg/kubeutils/resize.go index a48e6be1d..a744c66cc 100644 --- a/pkg/kubeutils/resize.go +++ b/pkg/kubeutils/resize.go @@ -18,7 +18,6 @@ package kubeutils import ( "github.com/containers/podman/v4/libpod/define" - "github.com/containers/podman/v4/pkg/k8s.io/apimachinery/pkg/util/runtime" ) // HandleResizing spawns a goroutine that processes the resize channel, calling resizeFunc for each @@ -30,8 +29,6 @@ func HandleResizing(resize <-chan define.TerminalSize, resizeFunc func(size defi } go func() { - defer runtime.HandleCrash() - for { size, ok := <-resize if !ok { -- cgit v1.2.3-54-g00ecf