code: func (kl *Kubelet) getPodsToSync() []*v1.Pod {
  	allPods := kl.podManager.GetPods()
  	podUIDs := kl.workQueue.GetWork()
  	podUIDSet := sets.NewString()
  	for _, podUID := range podUIDs {
  		podUIDSet.Insert(string(podUID))
  	}
  	var podsToSync []*v1.Pod
  	for _, pod := range allPods {
  		if podUIDSet.Has(string(pod.UID)) {
  			// The work of the pod is ready
  			podsToSync = append(podsToSync, pod)
  			continue
  		}
  		for _, podSyncLoopHandler := range kl.PodSyncLoopHandlers {
  			if podSyncLoopHandler.ShouldSync(pod) {
  				podsToSync = append(podsToSync, pod)
  				break
  			}
  		}
  	}
  	return podsToSync
  }
docs: // Get pods which should be resynchronized. Currently, the following pod should be resynchronized:
  //   * pod whose work is ready.
  //   * internal modules that request sync of a pod.