Added container ID to containerd task delete event messages

Signed-off-by: Cam <gh@sparr.email>
This commit is contained in:
Cam 2020-10-30 20:58:38 -07:00
parent c2cc352355
commit 80a5df9c49
No known key found for this signature in database
GPG key ID: EE812B08DF32F58C

View file

@ -862,6 +862,13 @@ func (c *client) processEventStream(ctx context.Context, ns string) {
ei = libcontainerdtypes.EventInfo{
ContainerID: t.ContainerID,
}
case *apievents.TaskDelete:
c.logger.WithFields(logrus.Fields{
"topic": ev.Topic,
"type": reflect.TypeOf(t),
"container": t.ContainerID},
).Info("ignoring event")
continue
default:
c.logger.WithFields(logrus.Fields{
"topic": ev.Topic,