- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for podMatchesScopeFunc (0.17 sec)
-
pkg/quota/v1/evaluator/core/pods.go
return nil, err } default: return nil, fmt.Errorf("expect *api.Pod or *v1.Pod, got %v", t) } return pod, nil } // podMatchesScopeFunc is a function that knows how to evaluate if a pod matches a scope func podMatchesScopeFunc(selector corev1.ScopedResourceSelectorRequirement, object runtime.Object) (bool, error) { pod, err := toExternalPodOrError(object) if err != nil { return false, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 05 00:02:47 UTC 2023 - 17.4K bytes - Viewed (0) -
pkg/quota/v1/evaluator/core/pods_test.go
Operator: corev1.ScopeSelectorOpExists, }, }, } for _, tt := range tests { b.Run(tt.name, func(b *testing.B) { for n := 0; n < b.N; n++ { _, _ = podMatchesScopeFunc(tt.selector, pod) } }) } } func mockListerForResourceFunc(listerForResource map[schema.GroupVersionResource]cache.GenericLister) quota.ListerForResourceFunc {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.6K bytes - Viewed (0)