Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PodRequirementsFromPod ¶
func PodRequirementsFromPod(pod *v1.Pod, priorityByPriorityClassName map[string]configuration.PriorityClass) *schedulerobjects.PodRequirements
func PodRequirementsFromPodSpec ¶
func PodRequirementsFromPodSpec(podSpec *v1.PodSpec, priorityByPriorityClassName map[string]configuration.PriorityClass) *schedulerobjects.PodRequirements
func PriorityFromPodSpec ¶
func PriorityFromPodSpec(podSpec *v1.PodSpec, priorityByPriorityClassName map[string]configuration.PriorityClass) (int32, bool)
PriorityFromPodSpec returns the priority set in a pod spec. If priority is set directly, that value is returned. Otherwise, it returns priorityByPriorityClassName[podSpec.PriorityClassName]. ok is false if no priority is set for this pod spec, in which case priority is 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.