Updates the job controller to only process backrest
backup jobs if they are not currently being deleted
(e.g. as the result of a foreground deletion).
@@ -260,7 +260,8 @@ func (c *JobController) onUpdate(oldObj, newObj interface{}) {
}
//handle the case of a backrest job being added
- if labels[config.LABEL_BACKREST] == "true" && labels[config.LABEL_BACKREST_COMMAND] == "backup" {
+ if !isForegroundDeletion && labels[config.LABEL_BACKREST] == "true" &&
+ labels[config.LABEL_BACKREST_COMMAND] == "backup" {
log.Debugf("jobController onUpdate backrest job case")
log.Debugf("got a backrest job status=%d", job.Status.Succeeded)
if job.Status.Succeeded == 1 {
