get Events to be logged

This commit is contained in:
feihujiang
2015-06-03 14:51:32 +08:00
parent 907b83cd7d
commit ebc8eab590
4 changed files with 4 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ type ReplicationManager struct {
// NewReplicationManager creates a new ReplicationManager.
func NewReplicationManager(kubeClient client.Interface, burstReplicas int) *ReplicationManager {
eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(glog.Infof)
eventBroadcaster.StartRecordingToSink(kubeClient.Events(""))
rm := &ReplicationManager{