code: func safeToApplyPodPresetsOnPod(pod *api.Pod, podPresets []*settingsv1alpha1.PodPreset) error {
  	var errs []error
  
  	// volumes attribute is defined at the Pod level, so determine if volumes
  	// injection is causing any conflict.
  	if _, err := mergeVolumes(pod.Spec.Volumes, podPresets); err != nil {
  		errs = append(errs, err)
  	}
  	for _, ctr := range pod.Spec.Containers {
  		if err := safeToApplyPodPresetsOnContainer(&ctr, podPresets); err != nil {
  			errs = append(errs, err)
  		}
  	}
  	for _, iCtr := range pod.Spec.InitContainers {
  		if err := safeToApplyPodPresetsOnContainer(&iCtr, podPresets); err != nil {
  			errs = append(errs, err)
  		}
  	}
  
  	return utilerrors.NewAggregate(errs)
  }
docs: // safeToApplyPodPresetsOnPod determines if there is any conflict in information
  // injected by given PodPresets in the Pod.