Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for scopeSelectors (0.26 sec)

  1. pkg/quota/v1/evaluator/core/pods.go

    func (p *podEvaluator) MatchingScopes(item runtime.Object, scopeSelectors []corev1.ScopedResourceSelectorRequirement) ([]corev1.ScopedResourceSelectorRequirement, error) {
    	matchedScopes := []corev1.ScopedResourceSelectorRequirement{}
    	for _, selector := range scopeSelectors {
    		match, err := podMatchesScopeFunc(selector, item)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    	restrictedScopes := []corev1.ScopedResourceSelectorRequirement{}
    	for i := range quotas {
    		resourceQuota := quotas[i]
    		scopeSelectors := getScopeSelectorsFromQuota(resourceQuota)
    		localRestrictedScopes, err := evaluator.MatchingScopes(inputObject, scopeSelectors)
    		if err != nil {
    			return nil, fmt.Errorf("error matching scopes of quota %s, err: %v", resourceQuota.Name, 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)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/resourcequotaspec.go

    type ResourceQuotaSpecApplyConfiguration struct {
    	Hard          *v1.ResourceList                 `json:"hard,omitempty"`
    	Scopes        []v1.ResourceQuotaScope          `json:"scopes,omitempty"`
    	ScopeSelector *ScopeSelectorApplyConfiguration `json:"scopeSelector,omitempty"`
    }
    
    // ResourceQuotaSpecApplyConfiguration constructs an declarative configuration of the ResourceQuotaSpec type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  4. pkg/controller/resourcequota/resource_quota_controller_test.go

    					Hard: v1.ResourceList{
    						v1.ResourceCPU:    resource.MustParse("3"),
    						v1.ResourceMemory: resource.MustParse("100Gi"),
    						v1.ResourcePods:   resource.MustParse("5"),
    					},
    					ScopeSelector: &v1.ScopeSelector{
    						MatchExpressions: []v1.ScopedResourceSelectorRequirement{
    							{
    								ScopeName: v1.ResourceQuotaScopePriorityClass,
    								Operator:  v1.ScopeSelectorOpExists},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  5. manifests/charts/istio-cni/templates/resourcequota.yaml

    apiVersion: v1
    kind: ResourceQuota
    metadata:
      name: {{ template "name" . }}-resource-quota
      namespace: {{ .Release.Namespace }}
    spec:
      hard:
        pods: {{ .Values.cni.resourceQuotas.pods | quote }}
      scopeSelector:
        matchExpressions:
        - operator: In
          scopeName: PriorityClass
          values:
          - system-node-critical
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 388 bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/HEAD/core.v1.ResourceQuota.yaml

        controller: true
        kind: kindValue
        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      hard:
        hardKey: "0"
      scopeSelector:
        matchExpressions:
        - operator: operatorValue
          scopeName: scopeNameValue
          values:
          - valuesValue
      scopes:
      - scopesValue
    status:
      hard:
        hardKey: "0"
      used:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 06 21:25:20 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.29.0/core.v1.ResourceQuota.yaml

        controller: true
        kind: kindValue
        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      hard:
        hardKey: "0"
      scopeSelector:
        matchExpressions:
        - operator: operatorValue
          scopeName: scopeNameValue
          values:
          - valuesValue
      scopes:
      - scopesValue
    status:
      hard:
        hardKey: "0"
      used:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.ResourceQuota.json

            "fieldsV1": {},
            "subresource": "subresourceValue"
          }
        ]
      },
      "spec": {
        "hard": {
          "hardKey": "0"
        },
        "scopes": [
          "scopesValue"
        ],
        "scopeSelector": {
          "matchExpressions": [
            {
              "scopeName": "scopeNameValue",
              "operator": "operatorValue",
              "values": [
                "valuesValue"
              ]
            }
          ]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    		selectors = append(selectors, corev1.ScopedResourceSelectorRequirement{
    			ScopeName: scope,
    			Operator:  corev1.ScopeSelectorOpExists})
    	}
    	if quota.Spec.ScopeSelector != nil {
    		selectors = append(selectors, quota.Spec.ScopeSelector.MatchExpressions...)
    	}
    	return selectors
    }
    
    // CalculateUsageStats is a utility function that knows how to calculate aggregate usage.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  10. plugin/pkg/admission/resourcequota/admission_test.go

    			quota: &corev1.ResourceQuota{
    				ObjectMeta: metav1.ObjectMeta{Name: "quota", Namespace: "test", ResourceVersion: "124"},
    				Spec: corev1.ResourceQuotaSpec{
    					ScopeSelector: &corev1.ScopeSelector{
    						MatchExpressions: []corev1.ScopedResourceSelectorRequirement{
    							{
    								ScopeName: corev1.ResourceQuotaScopePriorityClass,
    								Operator:  corev1.ScopeSelectorOpExists},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
Back to top