use the default scheduler name from the API when generating events; also start logging events to Infof

This commit is contained in:
James DeFelice
2016-01-20 18:44:24 +00:00
parent 3d7c79ca03
commit 227ac385e9

View File

@@ -785,7 +785,8 @@ func (s *SchedulerServer) bootstrap(hks hyperkube.Interface, sc *schedcfg.Config
// create event recorder sending events to the "" namespace of the apiserver
broadcaster := record.NewBroadcaster()
recorder := broadcaster.NewRecorder(api.EventSource{Component: "scheduler"})
recorder := broadcaster.NewRecorder(api.EventSource{Component: api.DefaultSchedulerName})
broadcaster.StartLogging(log.Infof)
broadcaster.StartRecordingToSink(client.Events(""))
// create scheduler core with all components arranged around it