- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for topologySelectorTerms (0.34 sec)
-
pkg/apis/core/v1/helper/helpers_test.go
} } func TestMatchTopologySelectorTerms(t *testing.T) { type args struct { topologySelectorTerms []v1.TopologySelectorTerm labels labels.Set } tests := []struct { name string args args want bool }{ { name: "nil term list", args: args{ topologySelectorTerms: nil, labels: nil, }, want: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 16.9K bytes - Viewed (0) -
pkg/apis/core/v1/helper/helpers.go
// nil or empty term matches no objects; while empty term list matches all objects. func MatchTopologySelectorTerms(topologySelectorTerms []v1.TopologySelectorTerm, lbls labels.Set) bool { if len(topologySelectorTerms) == 0 { // empty term list matches all objects return true } for _, req := range topologySelectorTerms { // nil or empty term selects no objects if len(req.MatchLabelExpressions) == 0 { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 11.4K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.12.md
### SIG Storage - The AllowedTopologies field inside StorageClass is now validated against set and map semantics. Specifically, there cannot be duplicate TopologySelectorTerms, MatchLabelExpressions keys, or TopologySelectorLabelRequirement Values. ([#66843](https://github.com/kubernetes/kubernetes/pull/66843), [@verult](https://github.com/verult))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 06 06:04:15 UTC 2020 - 293.8K bytes - Viewed (0)