shim: Move pprof server to plugin

Makes the pprof server a plugin and also gates by the `shim_tracing`
build tag (like otel is).
With this change, `net/http` is no longer a dependency in the shim.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff
2024-10-02 23:12:29 +00:00
parent b2681dfbdb
commit b85909cd4c
4 changed files with 91 additions and 34 deletions

View File

@@ -73,6 +73,8 @@ const (
CRIServicePlugin plugin.Type = "io.containerd.cri.v1"
// ShimPlugin implements a shim service
ShimPlugin plugin.Type = "io.containerd.shim.v1"
// HTTPHandler implements an http handler
HTTPHandler plugin.Type = "io.containerd.http.v1"
)
const (