Merge pull request #32462 from smarterclayton/sj_logs

Automatic merge from submit-queue

ScheduledJob controller is too chatty
This commit is contained in:
Kubernetes Submit Queue 2016-09-12 04:39:53 -07:00 committed by GitHub
commit c07d0b7752

View File

@ -102,7 +102,7 @@ func (jm *ScheduledJobController) SyncAll() {
return
}
sjs := sjl.Items
glog.Infof("Found %d scheduledjobs", len(sjs))
glog.V(4).Infof("Found %d scheduledjobs", len(sjs))
jl, err := jm.kubeClient.Batch().Jobs(api.NamespaceAll).List(api.ListOptions{})
if err != nil {
@ -110,10 +110,10 @@ func (jm *ScheduledJobController) SyncAll() {
return
}
js := jl.Items
glog.Infof("Found %d jobs", len(js))
glog.V(4).Infof("Found %d jobs", len(js))
jobsBySj := groupJobsByParent(sjs, js)
glog.Infof("Found %d groups", len(jobsBySj))
glog.V(4).Infof("Found %d groups", len(jobsBySj))
for _, sj := range sjs {
SyncOne(sj, jobsBySj[sj.UID], time.Now(), jm.jobControl, jm.sjControl, jm.podControl, jm.recorder)