Remove events from init context

Events from the init context have been replaced by the events plugin

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2023-05-30 18:04:09 -07:00
parent a81f3fb817
commit 2a60fe5a60
8 changed files with 19 additions and 20 deletions

View File

@@ -22,7 +22,6 @@ import (
"path/filepath"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/events/exchange"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
@@ -36,10 +35,8 @@ type InitContext struct {
TTRPCAddress string
RegisterReadiness func() func()
// deprecated: will be removed in 2.0, use plugin.EventType
Events *exchange.Exchange
Meta *Meta // plugins can fill in metadata at init.
// Meta is metadata plugins can fill in at init
Meta *Meta
plugins *Set
}