Skip to content

Commit

Permalink
chore: clarify if
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Ruocco <[email protected]>
  • Loading branch information
armru committed Aug 3, 2023
1 parent df13d21 commit 8fe2720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/backup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ func (r *BackupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
return ctrl.Result{}, nil
}

if cluster.Spec.Backup == nil && backup.GetSnapshotOnlineOrDefault() {
if cluster.Spec.Backup == nil && (backup.Spec.Method == apiv1.BarmanObjectStoreBackupMethod ||
backup.GetSnapshotOnlineOrDefault()) {
message := fmt.Sprintf(
"cannot proceed with the backup because cluster '%s' has no backup section defined",
clusterName)
Expand Down

0 comments on commit 8fe2720

Please sign in to comment.