code: func hasHostVolume(pod *v1.Pod) bool {
  	for _, v := range pod.Spec.Volumes {
  		if v.HostPath != nil {
  			return true
  		}
  	}
  	return false
  }
docs: // hasHostVolume returns true if the pod spec has a HostPath volume.