package nodeaffinity
import "k8s.io/component-helpers/scheduling/corev1/nodeaffinity"
Index ¶
- type LazyErrorNodeSelector
- func NewLazyErrorNodeSelector(ns *v1.NodeSelector) *LazyErrorNodeSelector
- func (ns *LazyErrorNodeSelector) Match(node *v1.Node) (bool, error)
- type NodeSelector
Types ¶
type LazyErrorNodeSelector ¶
type LazyErrorNodeSelector struct {
// contains filtered or unexported fields
}
LazyErrorNodeSelector is a runtime representation of v1.NodeSelector that only reports parse errors when no terms match.
func NewLazyErrorNodeSelector ¶
func NewLazyErrorNodeSelector(ns *v1.NodeSelector) *LazyErrorNodeSelector
NewLazyErrorNodeSelector creates a NodeSelector that only reports parse errors when no terms match.
func (*LazyErrorNodeSelector) Match ¶
func (ns *LazyErrorNodeSelector) Match(node *v1.Node) (bool, error)
Match checks whether the node labels and fields match the selector terms, ORed; nil or empty term matches no objects. Parse errors are only returned if no terms matched.
type NodeSelector ¶
type NodeSelector struct {
// contains filtered or unexported fields
}
NodeSelector is a runtime representation of v1.NodeSelector.
func NewNodeSelector ¶
func NewNodeSelector(ns *v1.NodeSelector) (*NodeSelector, error)
NewNodeSelector returns a NodeSelector or all parsing errors found.
func (*NodeSelector) Match ¶
func (ns *NodeSelector) Match(node *v1.Node) bool
Match checks whether the node labels and fields match the selector terms, ORed; nil or empty term matches no objects.
Source Files ¶
nodeaffinity.go
- Version
- v0.20.0-beta.1
- Published
- Nov 3, 2020
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.