mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #30328 from janetkuo/sj-log-fix
Automatic merge from submit-queue Fix incorrect logging format in sj controller <!-- Reviewable:start --> This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30328) <!-- Reviewable:end -->
This commit is contained in:
commit
c97b76326c
@ -99,7 +99,7 @@ func (jm *ScheduledJobController) SyncAll() {
|
||||
return
|
||||
}
|
||||
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{})
|
||||
if err != nil {
|
||||
@ -107,10 +107,10 @@ func (jm *ScheduledJobController) SyncAll() {
|
||||
return
|
||||
}
|
||||
js := jl.Items
|
||||
glog.Info("Found %d jobs", len(js))
|
||||
glog.Infof("Found %d jobs", len(js))
|
||||
|
||||
jobsBySj := groupJobsByParent(sjs, js)
|
||||
glog.Info("Found %d groups", len(jobsBySj))
|
||||
glog.Infof("Found %d groups", len(jobsBySj))
|
||||
|
||||
for _, sj := range sjs {
|
||||
SyncOne(sj, jobsBySj[sj.UID], time.Now(), jm.jobControl, jm.sjControl, jm.recorder)
|
||||
|
Loading…
Reference in New Issue
Block a user