code: func GetPodPriority(pod *v1.Pod) int32 {
  	if pod.Spec.Priority != nil {
  		return *pod.Spec.Priority
  	}
  	// When priority of a running pod is nil, it means it was created at a time
  	// that there was no global default priority class and the priority class
  	// name of the pod was empty. So, we resolve to the static default priority.
  	return scheduling.DefaultPriorityWhenNoDefaultClassExists
  }
docs: // GetPodPriority returns priority of the given pod.