ScheduledJob controller is too chatty

Sync information is printed far too often
parent 0c63bd03
...@@ -102,7 +102,7 @@ func (jm *ScheduledJobController) SyncAll() { ...@@ -102,7 +102,7 @@ func (jm *ScheduledJobController) SyncAll() {
return return
} }
sjs := sjl.Items 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{}) jl, err := jm.kubeClient.Batch().Jobs(api.NamespaceAll).List(api.ListOptions{})
if err != nil { if err != nil {
...@@ -110,10 +110,10 @@ func (jm *ScheduledJobController) SyncAll() { ...@@ -110,10 +110,10 @@ func (jm *ScheduledJobController) SyncAll() {
return return
} }
js := jl.Items js := jl.Items
glog.Infof("Found %d jobs", len(js)) glog.V(4).Infof("Found %d jobs", len(js))
jobsBySj := groupJobsByParent(sjs, 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 { for _, sj := range sjs {
SyncOne(sj, jobsBySj[sj.UID], time.Now(), jm.jobControl, jm.sjControl, jm.podControl, jm.recorder) SyncOne(sj, jobsBySj[sj.UID], time.Now(), jm.jobControl, jm.sjControl, jm.podControl, jm.recorder)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment