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:
@@ -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
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user