Skip to content

Commit 3fb325b

Browse files
committed
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>
1 parent 399a16d commit 3fb325b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

context.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"path/filepath"
2323

2424
"github.com/containerd/containerd/errdefs"
25-
"github.com/containerd/containerd/events/exchange"
2625
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
2726
)
2827

@@ -36,10 +35,8 @@ type InitContext struct {
3635
TTRPCAddress string
3736
RegisterReadiness func() func()
3837

39-
// deprecated: will be removed in 2.0, use plugin.EventType
40-
Events *exchange.Exchange
41-
42-
Meta *Meta // plugins can fill in metadata at init.
38+
// Meta is metadata plugins can fill in at init
39+
Meta *Meta
4340

4441
plugins *Set
4542
}

0 commit comments

Comments
 (0)