type NodeSelector …
type LazyErrorNodeSelector …
func NewNodeSelector(ns *v1.NodeSelector, opts ...field.PathOption) (*NodeSelector, error) { … }
func NewLazyErrorNodeSelector(ns *v1.NodeSelector, opts ...field.PathOption) *LazyErrorNodeSelector { … }
func (ns *NodeSelector) Match(node *v1.Node) bool { … }
func (ns *LazyErrorNodeSelector) Match(node *v1.Node) (bool, error) { … }
type PreferredSchedulingTerms …
func NewPreferredSchedulingTerms(terms []v1.PreferredSchedulingTerm, opts ...field.PathOption) (*PreferredSchedulingTerms, error) { … }
func (t *PreferredSchedulingTerms) Score(node *v1.Node) int64 { … }
func isEmptyNodeSelectorTerm(term *v1.NodeSelectorTerm) bool { … }
func extractNodeFields(n *v1.Node) fields.Set { … }
type nodeSelectorTerm …
func newNodeSelectorTerm(term *v1.NodeSelectorTerm, path *field.Path) nodeSelectorTerm { … }
func (t *nodeSelectorTerm) match(nodeLabels labels.Set, nodeFields fields.Set) (bool, []error) { … }
var validSelectorOperators …
func nodeSelectorRequirementsAsSelector(nsm []v1.NodeSelectorRequirement, path *field.Path) (labels.Selector, []error) { … }
var validFieldSelectorOperators …
func nodeSelectorRequirementsAsFieldSelector(nsr []v1.NodeSelectorRequirement, path *field.Path) (fields.Selector, []error) { … }
type preferredSchedulingTerm …
type RequiredNodeAffinity …
func GetRequiredNodeAffinity(pod *v1.Pod) RequiredNodeAffinity { … }
func (s RequiredNodeAffinity) Match(node *v1.Node) (bool, error) { … }