Browse code

Added container ID to containerd task delete event messages

Signed-off-by: Cam <gh@sparr.email>

Cam authored on 2020/10/31 12:58:38
Showing 1 changed files
... ...
@@ -862,6 +862,13 @@ func (c *client) processEventStream(ctx context.Context, ns string) {
862 862
 				ei = libcontainerdtypes.EventInfo{
863 863
 					ContainerID: t.ContainerID,
864 864
 				}
865
+			case *apievents.TaskDelete:
866
+				c.logger.WithFields(logrus.Fields{
867
+					"topic":     ev.Topic,
868
+					"type":      reflect.TypeOf(t),
869
+					"container": t.ContainerID},
870
+				).Info("ignoring event")
871
+				continue
865 872
 			default:
866 873
 				c.logger.WithFields(logrus.Fields{
867 874
 					"topic": ev.Topic,