code: func (kl *Kubelet) hasHostMountPVC(pod *v1.Pod) bool {
  	for _, volume := range pod.Spec.Volumes {
  		if volume.PersistentVolumeClaim != nil {
  			pvc, err := kl.kubeClient.CoreV1().PersistentVolumeClaims(pod.Namespace).Get(volume.PersistentVolumeClaim.ClaimName, metav1.GetOptions{})
  			if err != nil {
  				klog.Warningf("unable to retrieve pvc %s:%s - %v", pod.Namespace, volume.PersistentVolumeClaim.ClaimName, err)
  				continue
  			}
  			if pvc != nil {
  				referencedVolume, err := kl.kubeClient.CoreV1().PersistentVolumes().Get(pvc.Spec.VolumeName, metav1.GetOptions{})
  				if err != nil {
  					klog.Warningf("unable to retrieve pv %s - %v", pvc.Spec.VolumeName, err)
  					continue
  				}
  				if referencedVolume != nil && referencedVolume.Spec.HostPath != nil {
  					return true
  				}
  			}
  		}
  	}
  	return false
  }
docs: // hasHostMountPVC returns true if a PVC is referencing a HostPath volume.