mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Fix incorrect error checking
This commit is contained in:
parent
f55d18a1cf
commit
8f2aaf63d7
1 changed files with 2 additions and 2 deletions
|
|
@ -203,8 +203,8 @@ func (jm *ControllerV2) sync(ctx context.Context, cronJobKey string) (*time.Dura
|
|||
updateStatusAfterCleanup := jm.cleanupFinishedJobs(ctx, cronJobCopy, jobsToBeReconciled)
|
||||
|
||||
requeueAfter, updateStatusAfterSync, syncErr := jm.syncCronJob(ctx, cronJobCopy, jobsToBeReconciled)
|
||||
if err != nil {
|
||||
logger.V(2).Info("Error reconciling cronjob", "cronjob", klog.KObj(cronJob), "err", err)
|
||||
if syncErr != nil {
|
||||
logger.V(2).Info("Error reconciling cronjob", "cronjob", klog.KObj(cronJob), "err", syncErr)
|
||||
}
|
||||
|
||||
// Update the CronJob if needed
|
||||
|
|
|
|||
Loading…
Reference in a new issue