nodes

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoNotScheduleTaintsFilterFunc added in v1.4.0

func DoNotScheduleTaintsFilterFunc() func(t *corev1.Taint) bool

DoNotScheduleTaintsFilterFunc returns the filter function that can filter out the node taints that reject scheduling Pod on a Node.

func GetRequiredNodeAffinity added in v1.4.0

func GetRequiredNodeAffinity(requirements pb.ReplicaRequirements) nodeaffinity.RequiredNodeAffinity

GetRequiredNodeAffinity returns the parsing result of pod's nodeSelector and nodeAffinity.

func IsNodeAffinityMatched added in v1.4.0

func IsNodeAffinityMatched(node *corev1.Node, affinity nodeaffinity.RequiredNodeAffinity) bool

IsNodeAffinityMatched returns whether the node matches the node affinity.

func IsTolerationMatched added in v1.4.0

func IsTolerationMatched(node *corev1.Node, tolerations []corev1.Toleration) bool

IsTolerationMatched returns whether the node matches the tolerations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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