mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: update kubernetes to 1.26.1
update kubernetes and its dependencies to v1.26.1 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
e9e33fb851
commit
9c8de9471e
10
vendor/k8s.io/apimachinery/pkg/labels/selector.go
generated
vendored
10
vendor/k8s.io/apimachinery/pkg/labels/selector.go
generated
vendored
@ -74,9 +74,12 @@ type Selector interface {
|
||||
RequiresExactMatch(label string) (value string, found bool)
|
||||
}
|
||||
|
||||
// Sharing this saves 1 alloc per use; this is safe because it's immutable.
|
||||
var sharedEverythingSelector Selector = internalSelector{}
|
||||
|
||||
// Everything returns a selector that matches all labels.
|
||||
func Everything() Selector {
|
||||
return internalSelector{}
|
||||
return sharedEverythingSelector
|
||||
}
|
||||
|
||||
type nothingSelector struct{}
|
||||
@ -91,9 +94,12 @@ func (n nothingSelector) RequiresExactMatch(label string) (value string, found b
|
||||
return "", false
|
||||
}
|
||||
|
||||
// Sharing this saves 1 alloc per use; this is safe because it's immutable.
|
||||
var sharedNothingSelector Selector = nothingSelector{}
|
||||
|
||||
// Nothing returns a selector that matches no labels
|
||||
func Nothing() Selector {
|
||||
return nothingSelector{}
|
||||
return sharedNothingSelector
|
||||
}
|
||||
|
||||
// NewSelector returns a nil selector
|
||||
|
Reference in New Issue
Block a user