Documentation
¶
Index ¶
- func IsNodeUnschedulable(node *v1.Node) bool
- func IsReady(node *v1.Node) bool
- func PodFitsAnyNode(pod *v1.Pod, nodes []*v1.Node) bool
- func PodFitsAnyOtherNode(pod *v1.Pod, nodes []*v1.Node) bool
- func PodFitsCurrentNode(pod *v1.Pod, node *v1.Node) bool
- func ReadyNodes(ctx context.Context, client clientset.Interface, ...) ([]*v1.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNodeUnschedulable ¶ added in v0.10.0
IsNodeUnschedulable checks if the node is unschedulable. This is a 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 PodFitsAnyOtherNode ¶ added in v0.21.0
PodFitsAnyOtherNode checks if the given pod fits any of the given nodes, besides the node the pod is already running on. The node fit is based on multiple criteria, like, pod node selector matching the node label (including affinity), the taints on the node, and the 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.
func ReadyNodes ¶
func ReadyNodes(ctx context.Context, client clientset.Interface, nodeInformer coreinformers.NodeInformer, nodeSelector string) ([]*v1.Node, error)
ReadyNodes returns ready nodes irrespective of whether they are schedulable or not.
Types ¶
This section is empty.