mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Merge pull request #44962 from redbaron/fix-misleading-error
Automatic merge from submit-queue Remove misleading error from CronJob controller when it can't find parent UID CronJob controller lists all `Jobs` and then tries to match then against `CronJobs` using parent UID. It reports error if parent UID can't be found which means it reports error on every job which is not part of CronJob ```release-note NONE ```
This commit is contained in:
commit
17688c7c4b
@ -94,7 +94,7 @@ func groupJobsByParent(js []batchv1.Job) map[types.UID][]batchv1.Job {
|
||||
for _, job := range js {
|
||||
parentUID, found := getParentUIDFromJob(job)
|
||||
if !found {
|
||||
glog.Errorf("Unable to get uid from job %s in namespace %s", job.Name, job.Namespace)
|
||||
glog.V(4).Infof("Unable to get parent uid from job %s in namespace %s", job.Name, job.Namespace)
|
||||
continue
|
||||
}
|
||||
jobsBySj[parentUID] = append(jobsBySj[parentUID], job)
|
||||
|
Loading…
Reference in New Issue
Block a user