node

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func IsNodeUschedulable(node *v1.Node) bool

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 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 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(client clientset.Interface, nodeSelector string, stopChannel <-chan struct{}) ([]*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