diff --git a/internal/controller/mantlebackup_controller.go b/internal/controller/mantlebackup_controller.go index a24f76b1..09d922e6 100644 --- a/internal/controller/mantlebackup_controller.go +++ b/internal/controller/mantlebackup_controller.go @@ -372,7 +372,7 @@ func (r *MantleBackupReconciler) Reconcile(ctx context.Context, req ctrl.Request return ctrl.Result{}, err } - if r.primarySettings != nil { + if r.role == RolePrimary { client := r.primarySettings.Client _, err := client.CreateOrUpdatePVC( ctx,