Skip to content

Commit

Permalink
Fix cronjob panic on status update failure
Browse files Browse the repository at this point in the history
  • Loading branch information
janetkuo committed Feb 17, 2017
1 parent 68814c0 commit 6753544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/cronjob/cronjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func SyncOne(sj batch.CronJob, js []batch.Job, now time.Time, jc jobControlInter
updatedSJ, err := sjc.UpdateStatus(&sj)
if err != nil {
glog.Errorf("Unable to update status for %s (rv = %s): %v", nameForLog, sj.ResourceVersion, err)
return
}
sj = *updatedSJ

Expand Down

0 comments on commit 6753544

Please sign in to comment.