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
PodRequirementsFromPod function creates the schedulerobjects and creates a value for the annotation field by supplying it with a cloned value of pod.Annotations
func PodRequirementsFromPodSpec ¶
func PodRequirementsFromPodSpec(podSpec *v1.PodSpec, priorityByPriorityClassName map[string]configuration.PriorityClass) *schedulerobjects.PodRequirements
PodRequirementsFromPodSpec function returns *schedulerobjects.PodRequirements for podSpec. An error is logged if the podSpec uses an unknown priority class. This function may mutate podSpec.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.