mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Add AndSelectors helper function
Signed-off-by: Monis Khan <mkhan@redhat.com>
This commit is contained in:
parent
ff0ec5cd7a
commit
be6407ba97
@ -276,3 +276,8 @@ func parseSelector(selector string, fn TransformFunc) (Selector, error) {
|
|||||||
func OneTermEqualSelector(k, v string) Selector {
|
func OneTermEqualSelector(k, v string) Selector {
|
||||||
return &hasTerm{field: k, value: v}
|
return &hasTerm{field: k, value: v}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AndSelectors creates a selector that is the logical AND of all the given selectors
|
||||||
|
func AndSelectors(selectors ...Selector) Selector {
|
||||||
|
return andTerm(selectors)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user