mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-31 08:36:16 +00:00
use the default scheduler name from the API when generating events; also start logging events to Infof
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user