Documentation ¶
Index ¶
- Constants
- func CheckNROSchedulerAvailable(cli client.Client, NUMAResourcesSchedObjName string) *nropv1.NUMAResourcesScheduler
- func CheckPODKubeletRejectWithTopologyAffinityError(k8sCli *kubernetes.Clientset, podNamespace, podName string) (bool, error)
- func CheckPODSchedulingFailed(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName string) (bool, error)
- func CheckPODSchedulingFailedForAlignment(k8sCli *kubernetes.Clientset, ...) (bool, error)
- func CheckPODWasScheduledWith(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName string) (bool, error)
- func CheckPodSchedulingFailedWithMsg(k8sCli *kubernetes.Clientset, ...) (bool, error)
- func GetNROSchedulerName(cli client.Client, NUMAResourcesSchedObjName string) string
Constants ¶
View Source
const ( // scheduler ReasonScheduled = "Scheduled" ReasonFailedScheduling = "FailedScheduling" // kubelet ReasonTopologyAffinityError = "TopologyAffinityError" // scheduler ErrorCannotAlignPod = "cannot align pod" ErrorCannotAlignContainer = "cannot align container" // kubeket ErrorTopologyAffinityError = "Resources cannot be allocated with Topology locality" )
Variables ¶
This section is empty.
Functions ¶
func CheckNROSchedulerAvailable ¶
func CheckNROSchedulerAvailable(cli client.Client, NUMAResourcesSchedObjName string) *nropv1.NUMAResourcesScheduler
func CheckPODKubeletRejectWithTopologyAffinityError ¶
func CheckPODKubeletRejectWithTopologyAffinityError(k8sCli *kubernetes.Clientset, podNamespace, podName string) (bool, error)
func CheckPODSchedulingFailed ¶
func CheckPODSchedulingFailed(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName string) (bool, error)
func CheckPODSchedulingFailedForAlignment ¶
func CheckPODSchedulingFailedForAlignment(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName, scope string) (bool, error)
This function assumes a TMPolicy of "single-numa-node"
func CheckPODWasScheduledWith ¶
func CheckPODWasScheduledWith(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName string) (bool, error)
func CheckPodSchedulingFailedWithMsg ¶
func CheckPodSchedulingFailedWithMsg(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName, eventMsg string) (bool, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.