Documentation ¶
Overview ¶
Package corev1 defines functions which should satisfy one of the following:
- Be used by more than one core component (kube-scheduler, kubelet, kube-apiserver, etc.) - Be used by a core component and another kubernetes project (cluster-autoscaler, descheduler)
And be a scheduling feature.
Index ¶
- func FindMatchingUntoleratedTaint(taints []v1.Taint, tolerations []v1.Toleration, ...) (v1.Taint, bool)
- func GetAvoidPodsFromNodeAnnotations(annotations map[string]string) (v1.AvoidPods, error)
- func MatchNodeSelectorTerms(node *v1.Node, nodeSelector *v1.NodeSelector) (bool, error)
- func PodPriority(pod *v1.Pod) int32
- func TolerationsTolerateTaint(tolerations []v1.Toleration, taint *v1.Taint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMatchingUntoleratedTaint ¶ added in v0.21.0
func FindMatchingUntoleratedTaint(taints []v1.Taint, tolerations []v1.Toleration, inclusionFilter taintsFilterFunc) (v1.Taint, bool)
FindMatchingUntoleratedTaint checks if the given tolerations tolerates all the filtered taints, and returns the first taint without a toleration Returns true if there is an untolerated taint Returns false if all taints are tolerated
func GetAvoidPodsFromNodeAnnotations ¶ added in v0.21.0
GetAvoidPodsFromNodeAnnotations scans the list of annotations and returns the pods that needs to be avoided for this node from scheduling
func MatchNodeSelectorTerms ¶
MatchNodeSelectorTerms checks whether the node labels and fields match node selector terms in ORed; nil or empty term matches no objects.
func PodPriority ¶
PodPriority returns priority of the given pod.
func TolerationsTolerateTaint ¶ added in v0.21.0
func TolerationsTolerateTaint(tolerations []v1.Toleration, taint *v1.Taint) bool
TolerationsTolerateTaint checks if taint is tolerated by any of the tolerations.
Types ¶
This section is empty.