Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MatchingScopes (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    	return quota.Intersection(input, o.resourceNames)
    }
    
    // MatchingScopes takes the input specified list of scopes and input object. Returns the set of scopes resource matches.
    func (o *objectCountEvaluator) MatchingScopes(item runtime.Object, scopes []corev1.ScopedResourceSelectorRequirement) ([]corev1.ScopedResourceSelectorRequirement, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. pkg/quota/v1/evaluator/core/pods.go

    		if isExtendedResourceNameForQuota(resource) {
    			result = append(result, resource)
    		}
    	}
    
    	return result
    }
    
    // MatchingScopes takes the input specified list of scopes and pod object. Returns the set of scope selectors pod matches.
    func (p *podEvaluator) MatchingScopes(item runtime.Object, scopeSelectors []corev1.ScopedResourceSelectorRequirement) ([]corev1.ScopedResourceSelectorRequirement, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    	scopes := []corev1.ScopedResourceSelectorRequirement{}
    	for _, limitedResource := range limitedResources {
    		matched, err := evaluator.MatchingScopes(inputObject, limitedResource.MatchScopes)
    		if err != nil {
    			klog.ErrorS(err, "Error while matching limited Scopes")
    			return []corev1.ScopedResourceSelectorRequirement{}, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. pkg/quota/v1/evaluator/core/pods_test.go

    					{ScopeName: corev1.ResourceQuotaScopeCrossNamespacePodAffinity},
    				}
    			}
    			gotSelectors, err := evaluator.MatchingScopes(testCase.pod, testCase.selectors)
    			if err != nil {
    				t.Error(err)
    			}
    			if diff := cmp.Diff(testCase.wantSelectors, gotSelectors); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top