Adding events to deployment

This commit is contained in:
nikhiljindal
2015-09-29 16:55:06 -07:00
parent 00ab055fa1
commit c6deb442f9
6 changed files with 259 additions and 94 deletions

View File

@@ -1435,6 +1435,10 @@ func (dd *DeploymentDescriber) Describe(namespace, name string) (string, error)
}
fmt.Fprintf(out, "NewReplicationController:\t%s\n", printReplicationControllersByLabels(newRCs))
}
events, err := dd.Events(namespace).Search(d)
if err == nil && events != nil {
DescribeEvents(events, out)
}
return nil
})
}