Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Selector ¶
type Selector struct { metav1.LabelSelector `json:",inline"` // ExtendMatchLabels allows match labels with the same key but different value. // e.g. {key: [v1, v2]} matches labels: {key: v1, key: v2} and {key: v1, key: v2, key: v3} // +optional ExtendMatchLabels map[string][]string `json:"extendMatchLabels,omitempty"` // MatchNothing does not match any labels when set to true MatchNothing bool `json:"matchNothing,omitempty"` }
Selector extends metav1.LabelSelector, it allows select multiple labels with same key but different value. The result of matchLabels and matchExpressions and extendMatchLabels are ANDed. An empty selector matches all objects. A null selector matches no objects. The matched labels MUST be the superset of the MatchLabels and ExtendMatchLabels. +k8s:deepcopy-gen=true
func FromLabelSelector ¶
func FromLabelSelector(labelSelector *metav1.LabelSelector) *Selector
FromLabelSelector covert metav1.LabelSelector to Selector
func (*Selector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.