Do not error out when inspecting a in progress backup
@@ -3,6 +3,7 @@ package controller
import (
"fmt"
"reflect"
+ "strings"
"time"
"github.com/pkg/errors"
@@ -331,7 +332,9 @@ func (bc *BackupController) reconcile(backupName string) (err error) {
backupURL := backupstore.EncodeBackupURL(backup.Name, backupVolumeName, backupTargetClient.URL)
backupInfo, err := backupTargetClient.InspectBackupConfig(backupURL)
if err != nil {
+ if !strings.Contains(err.Error(), "in progress") {
log.WithError(err).Error("Error inspecting backup config")
+ }
return nil // Ignore error to prevent enqueue
}
if backupInfo == nil {
