code: func validatePreferAvoidPodsEntry(avoidPodEntry core.PreferAvoidPodsEntry, fldPath *field.Path) field.ErrorList {
  	allErrors := field.ErrorList{}
  	if avoidPodEntry.PodSignature.PodController == nil {
  		allErrors = append(allErrors, field.Required(fldPath.Child("PodSignature"), ""))
  	} else {
  		if *(avoidPodEntry.PodSignature.PodController.Controller) != true {
  			allErrors = append(allErrors,
  				field.Invalid(fldPath.Child("PodSignature").Child("PodController").Child("Controller"),
  					*(avoidPodEntry.PodSignature.PodController.Controller), "must point to a controller"))
  		}
  	}
  	return allErrors
  }
docs: // validatePreferAvoidPodsEntry tests if given PreferAvoidPodsEntry has valid data.