mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Fix cronjob panic on status update failure
This commit is contained in:
@@ -167,6 +167,7 @@ func SyncOne(sj batch.CronJob, js []batch.Job, now time.Time, jc jobControlInter
|
|||||||
updatedSJ, err := sjc.UpdateStatus(&sj)
|
updatedSJ, err := sjc.UpdateStatus(&sj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Unable to update status for %s (rv = %s): %v", nameForLog, sj.ResourceVersion, err)
|
glog.Errorf("Unable to update status for %s (rv = %s): %v", nameForLog, sj.ResourceVersion, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
sj = *updatedSJ
|
sj = *updatedSJ
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user