From 3b13df3c6c3d9a80db20107d6499fe6e0c530702 Mon Sep 17 00:00:00 2001 From: Rohit Jnagal Date: Tue, 5 May 2015 22:05:15 +0000 Subject: [PATCH] Remove spec info from container creation event data. --- info/v1/container.go | 9 --------- manager/manager.go | 5 ----- 2 files changed, 14 deletions(-) diff --git a/info/v1/container.go b/info/v1/container.go index 59823824..26e85e15 100644 --- a/info/v1/container.go +++ b/info/v1/container.go @@ -508,19 +508,10 @@ const ( // Extra information about an event. Only one type will be set. type EventData struct { - // Information about a container creation event. - Created *CreatedEventData `json:"created,omitempty"` - // Information about an OOM kill event. OomKill *OomKillEventData `json:"oom,omitempty"` } -// Information related to a container creation event. -type CreatedEventData struct { - // Spec of the container at creation. - Spec ContainerSpec `json:"spec"` -} - // Information related to an OOM kill instance type OomKillEventData struct { // process id of the killed process diff --git a/manager/manager.go b/manager/manager.go index f7c8e92b..f4f348d3 100644 --- a/manager/manager.go +++ b/manager/manager.go @@ -707,11 +707,6 @@ func (m *manager) createContainer(containerName string) error { ContainerName: contRef.Name, Timestamp: contSpec.CreationTime, EventType: info.EventContainerCreation, - EventData: info.EventData{ - Created: &info.CreatedEventData{ - Spec: contSpec, - }, - }, } err = m.eventHandler.AddEvent(newEvent) if err != nil {