node

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNodeUnschedulable added in v0.10.0

func IsNodeUnschedulable(node *v1.Node) bool

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 IsReady

func IsReady(node *v1.Node) bool

IsReady checks if the descheduler could run against given node.

func PodFitsAnyNode added in v0.5.0

func PodFitsAnyNode(pod *v1.Pod, nodes []*v1.Node) bool

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

func PodFitsAnyOtherNode(pod *v1.Pod, nodes []*v1.Node) bool

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

func PodFitsCurrentNode(pod *v1.Pod, node *v1.Node) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL