Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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, opts ...field.PathOption) *LazyErrorNodeSelector
NewLazyErrorNodeSelector creates a NodeSelector that only reports parse errors when no terms match.
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, opts ...field.PathOption) (*NodeSelector, error)
NewNodeSelector returns a NodeSelector or aggregate parsing errors found.
type PreferredSchedulingTerms ¶
type PreferredSchedulingTerms struct {
// contains filtered or unexported fields
}
PreferredSchedulingTerms is a runtime representation of []v1.PreferredSchedulingTerms.
func NewPreferredSchedulingTerms ¶
func NewPreferredSchedulingTerms(terms []v1.PreferredSchedulingTerm, opts ...field.PathOption) (*PreferredSchedulingTerms, error)
NewPreferredSchedulingTerms returns a PreferredSchedulingTerms or all the parsing errors found. If a v1.PreferredSchedulingTerm has a 0 weight, its parsing is skipped.
type RequiredNodeAffinity ¶ added in v0.21.0
type RequiredNodeAffinity struct {
// contains filtered or unexported fields
}
func GetRequiredNodeAffinity ¶ added in v0.21.0
func GetRequiredNodeAffinity(pod *v1.Pod) RequiredNodeAffinity
GetRequiredNodeAffinity returns the parsing result of pod's nodeSelector and nodeAffinity.