code: func ValidateConditionalPodTemplate(podTemplate, oldPodTemplate *api.PodTemplateSpec, fldPath *field.Path) field.ErrorList {
  	var (
  		podSpec    *api.PodSpec
  		oldPodSpec *api.PodSpec
  	)
  	if podTemplate != nil {
  		podSpec = &podTemplate.Spec
  	}
  	if oldPodTemplate != nil {
  		oldPodSpec = &oldPodTemplate.Spec
  	}
  	return validateConditionalPodSpec(podSpec, oldPodSpec, fldPath.Child("spec"))
  }
docs: // ValidateConditionalPodTemplate validates conditionally valid fields.
  // This should be called from Validate/ValidateUpdate for all resources containing a PodTemplateSpec