Merge pull request #683 from rjnagal/validate

Remove spec info from container creation event data.
This commit is contained in:
Victor Marmol 2015-05-05 15:50:10 -07:00
commit 833a60014e
2 changed files with 0 additions and 14 deletions

View File

@ -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

View File

@ -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 {