code: func ValidatePodTemplate(pod *core.PodTemplate) field.ErrorList {
  	allErrs := ValidateObjectMeta(&pod.ObjectMeta, true, ValidatePodName, field.NewPath("metadata"))
  	allErrs = append(allErrs, ValidatePodTemplateSpec(&pod.Template, field.NewPath("template"))...)
  	return allErrs
  }
docs: // ValidatePodTemplate tests if required fields in the pod template are set.