mirror of https://github.com/k3s-io/k3s
Fix incorrect logging format in sj controller
parent
5aaaaff07c
commit
7eeba370e2
|
@ -99,7 +99,7 @@ func (jm *ScheduledJobController) SyncAll() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
sjs := sjl.Items
|
sjs := sjl.Items
|
||||||
glog.Info("Found %d scheduledjobs", len(sjs))
|
glog.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 {
|
||||||
|
@ -107,10 +107,10 @@ func (jm *ScheduledJobController) SyncAll() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
js := jl.Items
|
js := jl.Items
|
||||||
glog.Info("Found %d jobs", len(js))
|
glog.Infof("Found %d jobs", len(js))
|
||||||
|
|
||||||
jobsBySj := groupJobsByParent(sjs, js)
|
jobsBySj := groupJobsByParent(sjs, js)
|
||||||
glog.Info("Found %d groups", len(jobsBySj))
|
glog.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.recorder)
|
SyncOne(sj, jobsBySj[sj.UID], time.Now(), jm.jobControl, jm.sjControl, jm.recorder)
|
||||||
|
|
Loading…
Reference in New Issue