code: func (sched *Scheduler) recordSchedulingFailure(pod *v1.Pod, err error, reason string, message string) {
  	sched.config.Error(pod, err)
  	sched.config.Recorder.Event(pod, v1.EventTypeWarning, "FailedScheduling", message)
  	sched.config.PodConditionUpdater.Update(pod, &v1.PodCondition{
  		Type:    v1.PodScheduled,
  		Status:  v1.ConditionFalse,
  		Reason:  reason,
  		Message: err.Error(),
  	})
  }
docs: // recordFailedSchedulingEvent records an event for the pod that indicates the
  // pod has failed to schedule.
  // NOTE: This function modifies "pod". "pod" should be copied before being passed.