fix scheduleReconciler log info

Signed-off-by: yanggang <gang.yang@daocloud.io>
pull/6524/head
yanggang 2023-07-19 16:10:41 +08:00
parent b4181ef803
commit c5af315d19
No known key found for this signature in database
GPG Key ID: 7F6E0CAD1556A240
1 changed files with 1 additions and 2 deletions

View File

@ -199,11 +199,10 @@ func (c *scheduleReconciler) checkIfBackupInNewOrProgress(schedule *velerov1.Sch
for _, backup := range backupList.Items {
if backup.Status.Phase == velerov1.BackupPhaseNew || backup.Status.Phase == velerov1.BackupPhaseInProgress {
log.Debugf("%s/%s still has backups that are in InProgress or New...", schedule.Namespace, schedule.Name)
return true
}
}
log.Debugf("Schedule %s/%s still has backups are in InProgress or New state, skip submitting backup to avoid overlap.", schedule.Namespace, schedule.Name)
return false
}