Documentation ¶
Index ¶
- func GetNodeLister(client clientset.Interface, stopChannel <-chan struct{}) corelisters.NodeLister
- func IsNodeUschedulable(node *v1.Node) bool
- func IsReady(node *v1.Node) bool
- func PodFitsAnyNode(pod *v1.Pod, nodes []*v1.Node) bool
- func PodFitsCurrentNode(pod *v1.Pod, node *v1.Node) bool
- func ReadyNodes(client clientset.Interface, nodeSelector string, stopChannel <-chan struct{}) ([]*v1.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeLister ¶
func GetNodeLister(client clientset.Interface, stopChannel <-chan struct{}) corelisters.NodeLister
func IsNodeUschedulable ¶ added in v0.4.0
IsNodeUschedulable checks if the node is unschedulable. This is helper function to check only in case of underutilized node so that they won't be accounted for.
func PodFitsAnyNode ¶ added in v0.5.0
PodFitsAnyNode checks if the given pod fits any of the given nodes, based on multiple criteria, like, pod node selector matching the node label, node being schedulable or not.
func PodFitsCurrentNode ¶ added in v0.5.0
PodFitsCurrentNode checks if the given pod fits on the given node if the pod node selector matches the node label.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.