Documentation ¶
Index ¶
- func DoNotScheduleTaintsFilterFunc() func(t *corev1.Taint) bool
- func GetRequiredNodeAffinity(requirements pb.ReplicaRequirements) nodeaffinity.RequiredNodeAffinity
- func IsNodeAffinityMatched(node *corev1.Node, affinity nodeaffinity.RequiredNodeAffinity) bool
- func IsTolerationMatched(node *corev1.Node, tolerations []corev1.Toleration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoNotScheduleTaintsFilterFunc ¶ added in v1.4.0
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.
Click to show internal directories.
Click to hide internal directories.