- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 85 for isSuperset (0.19 sec)
-
pkg/util/tolerations/tolerations.go
} return merged } // isSuperset checks whether ss tolerates a superset of t. func isSuperset(ss, t api.Toleration) bool { if apiequality.Semantic.DeepEqual(&t, &ss) { return true } if t.Key != ss.Key && // An empty key with Exists operator means match all keys & values. (ss.Key != "" || ss.Operator != api.TolerationOpExists) { return false } // An empty effect means match all effects.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int.go
// s2 = {a2, a3} // s1.Intersection(s2) = {a2} func (s1 Int) Intersection(s2 Int) Int { return Int(cast(s1).Intersection(cast(s2))) } // IsSuperset returns true if and only if s1 is a superset of s2. func (s1 Int) IsSuperset(s2 Int) bool { return cast(s1).IsSuperset(cast(s2)) } // Equal returns true if and only if s1 is equal (as a set) to s2. // Two sets are equal if their membership is identical.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go
// s2 = {a2, a3} // s1.Intersection(s2) = {a2} func (s1 Int32) Intersection(s2 Int32) Int32 { return Int32(cast(s1).Intersection(cast(s2))) } // IsSuperset returns true if and only if s1 is a superset of s2. func (s1 Int32) IsSuperset(s2 Int32) bool { return cast(s1).IsSuperset(cast(s2)) } // Equal returns true if and only if s1 is equal (as a set) to s2. // Two sets are equal if their membership is identical.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go
// s2 = {a2, a3} // s1.Intersection(s2) = {a2} func (s1 Byte) Intersection(s2 Byte) Byte { return Byte(cast(s1).Intersection(cast(s2))) } // IsSuperset returns true if and only if s1 is a superset of s2. func (s1 Byte) IsSuperset(s2 Byte) bool { return cast(s1).IsSuperset(cast(s2)) } // Equal returns true if and only if s1 is equal (as a set) to s2. // Two sets are equal if their membership is identical.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go
// s2 = {a2, a3} // s1.Intersection(s2) = {a2} func (s1 Int64) Intersection(s2 Int64) Int64 { return Int64(cast(s1).Intersection(cast(s2))) } // IsSuperset returns true if and only if s1 is a superset of s2. func (s1 Int64) IsSuperset(s2 Int64) bool { return cast(s1).IsSuperset(cast(s2)) } // Equal returns true if and only if s1 is equal (as a set) to s2. // Two sets are equal if their membership is identical.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/string.go
// s1.Intersection(s2) = {a2} func (s1 String) Intersection(s2 String) String { return String(cast(s1).Intersection(cast(s2))) } // IsSuperset returns true if and only if s1 is a superset of s2. func (s1 String) IsSuperset(s2 String) bool { return cast(s1).IsSuperset(cast(s2)) } // Equal returns true if and only if s1 is equal (as a set) to s2. // Two sets are equal if their membership is identical.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 19:51:18 UTC 2024 - 5.8K bytes - Viewed (0) -
pkg/util/tolerations/tolerations_test.go
}} assertSuperset := func(t *testing.T, super, sub string) { assert.True(t, isSuperset(tolerations[super], tolerations[sub]), "%s should be a superset of %s", super, sub) } assertNotSuperset := func(t *testing.T, super, sub string) { assert.False(t, isSuperset(tolerations[super], tolerations[sub]), "%s should NOT be a superset of %s", super, sub) } contains := func(ss []string, s string) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 26 22:25:49 UTC 2019 - 11.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go
t.Errorf("Unexpected contents: %#v", s) } if !s.HasAll("a", "b") { t.Errorf("Missing contents: %#v", s) } s2.Insert("a", "b", "d") if s.IsSuperset(s2) { t.Errorf("Unexpected contents: %#v", s) } s2.Delete("d") if !s.IsSuperset(s2) { t.Errorf("Missing contents: %#v", s) } } func TestStringSetDeleteMultiples(t *testing.T) { s := String{} s.Insert("a", "b", "c") if len(s) != 3 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 8K bytes - Viewed (0) -
pkg/controller/nodelifecycle/scheduler/rate_limited_queue_test.go
for i := 0; i < len(lhs); i++ { if rhs[i].Value != lhs[i] { return false } } return true } func CheckSetEq(lhs, rhs sets.String) bool { return lhs.IsSuperset(rhs) && rhs.IsSuperset(lhs) } func TestAddNode(t *testing.T) { evictor := NewRateLimitedTimedQueue(flowcontrol.NewFakeAlwaysRateLimiter()) evictor.Add("first", "11111") evictor.Add("second", "22222")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 17:40:33 UTC 2023 - 10K bytes - Viewed (0)