code: func ValidatePod(pod *api.Pod) field.ErrorList {
  	allErrs := ValidateObjectMeta(&pod.ObjectMeta, true, ValidatePodName, field.NewPath("metadata"))
  	allErrs = append(allErrs, ValidatePodSpec(&pod.Spec, field.NewPath("spec"))...)
  	return allErrs
  }
docs: // ValidatePod tests if required fields in the pod are set.