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

@@ -17,6 +17,7 @@
package plugin
import (
"github.com/containerd/containerd/events/exchange"
"github.com/containerd/containerd/plugin"
)
@@ -25,8 +26,7 @@ func init() {
Type: plugin.EventPlugin,
ID: "exchange",
InitFn: func(ic *plugin.InitContext) (interface{}, error) {
// TODO: In 2.0, create exchange since ic.Events will be removed
return ic.Events, nil
return exchange.NewExchange(), nil
},
})
}