code: func podPassesBasicChecks(pod *v1.Pod, pvcLister corelisters.PersistentVolumeClaimLister) error {
  	// Check PVCs used by the pod
  	namespace := pod.Namespace
  	manifest := &(pod.Spec)
  	for i := range manifest.Volumes {
  		volume := &manifest.Volumes[i]
  		if volume.PersistentVolumeClaim == nil {
  			// Volume is not a PVC, ignore
  			continue
  		}
  		pvcName := volume.PersistentVolumeClaim.ClaimName
  		pvc, err := pvcLister.PersistentVolumeClaims(namespace).Get(pvcName)
  		if err != nil {
  			// The error has already enough context ("persistentvolumeclaim "myclaim" not found")
  			return err
  		}
  
  		if pvc.DeletionTimestamp != nil {
  			return fmt.Errorf("persistentvolumeclaim %q is being deleted", pvc.Name)
  		}
  	}
  
  	return nil
  }
docs: // podPassesBasicChecks makes sanity checks on the pod if it can be scheduled.