code: func GetPodAntiAffinityTerms(podAntiAffinity *v1.PodAntiAffinity) (terms []v1.PodAffinityTerm) {
  	if podAntiAffinity != nil {
  		if len(podAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution) != 0 {
  			terms = podAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution
  		}
  		// TODO: Uncomment this block when implement RequiredDuringSchedulingRequiredDuringExecution.
  		//if len(podAntiAffinity.RequiredDuringSchedulingRequiredDuringExecution) != 0 {
  		//	terms = append(terms, podAntiAffinity.RequiredDuringSchedulingRequiredDuringExecution...)
  		//}
  	}
  	return terms
  }
docs: // GetPodAntiAffinityTerms gets pod affinity terms by a pod anti-affinity.