code: func GetNamespacesFromPodAffinityTerm(pod *v1.Pod, podAffinityTerm *v1.PodAffinityTerm) sets.String {
  	names := sets.String{}
  	if len(podAffinityTerm.Namespaces) == 0 {
  		names.Insert(pod.Namespace)
  	} else {
  		names.Insert(podAffinityTerm.Namespaces...)
  	}
  	return names
  }
docs: // GetNamespacesFromPodAffinityTerm returns a set of names
  // according to the namespaces indicated in podAffinityTerm.
  // If namespaces is empty it considers the given pod's namespace.