Merge pull request #683 from rjnagal/validate
Remove spec info from container creation event data.
This commit is contained in:
commit
833a60014e
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user