code: func DropDisabledTemplateFields(podTemplate, oldPodTemplate *api.PodTemplateSpec) {
  	var (
  		podSpec           *api.PodSpec
  		podAnnotations    map[string]string
  		oldPodSpec        *api.PodSpec
  		oldPodAnnotations map[string]string
  	)
  	if podTemplate != nil {
  		podSpec = &podTemplate.Spec
  		podAnnotations = podTemplate.Annotations
  	}
  	if oldPodTemplate != nil {
  		oldPodSpec = &oldPodTemplate.Spec
  		oldPodAnnotations = oldPodTemplate.Annotations
  	}
  	dropDisabledFields(podSpec, podAnnotations, oldPodSpec, oldPodAnnotations)
  }
docs: // DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec.
  // This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a PodTemplateSpec