Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for resourcequotastore (0.26 sec)

  1. pkg/registry/core/rest/storage_core_generic.go

    	}
    
    	eventStorage, err := eventstore.NewREST(restOptionsGetter, uint64(c.EventTTL.Seconds()))
    	if err != nil {
    		return genericapiserver.APIGroupInfo{}, err
    	}
    
    	resourceQuotaStorage, resourceQuotaStatusStorage, err := resourcequotastore.NewREST(restOptionsGetter)
    	if err != nil {
    		return genericapiserver.APIGroupInfo{}, err
    	}
    	secretStorage, err := secretstore.NewREST(restOptionsGetter)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. pkg/apis/core/helper/helpers.go

    	core.ResourceQuotaScopeNotBestEffort,
    	core.ResourceQuotaScopePriorityClass,
    )
    
    // IsStandardResourceQuotaScope returns true if the scope is a standard value
    func IsStandardResourceQuotaScope(scope core.ResourceQuotaScope) bool {
    	return standardResourceQuotaScopes.Has(scope) || scope == core.ResourceQuotaScopeCrossNamespacePodAffinity
    }
    
    var podObjectCountQuotaResources = sets.New(
    	core.ResourcePods,
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. plugin/pkg/admission/resourcequota/admission_test.go

    	resourceQuotaNonTerminating := &corev1.ResourceQuota{
    		ObjectMeta: metav1.ObjectMeta{Name: "quota-non-terminating", Namespace: "test", ResourceVersion: "124"},
    		Spec: corev1.ResourceQuotaSpec{
    			Scopes: []corev1.ResourceQuotaScope{corev1.ResourceQuotaScopeNotTerminating},
    		},
    		Status: corev1.ResourceQuotaStatus{
    			Hard: corev1.ResourceList{
    				corev1.ResourceCPU:    resource.MustParse("3"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  4. pkg/quota/v1/evaluator/core/pods_test.go

    	cpu1 := api.ResourceList{api.ResourceCPU: resource.MustParse("1")}
    	tests := []struct {
    		name               string
    		objs               []runtime.Object
    		quotaScopes        []corev1.ResourceQuotaScope
    		quotaScopeSelector *corev1.ScopeSelector
    		want               corev1.ResourceList
    	}{
    		{
    			name: "nil case",
    		},
    		{
    			name: "all pods in running state",
    			objs: []runtime.Object{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. 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"),
    					},
    					Scopes: []v1.ResourceQuotaScope{v1.ResourceQuotaScopeBestEffort},
    				},
    			},
    			status: v1.ResourceQuotaStatus{
    				Hard: v1.ResourceList{
    					v1.ResourceCPU:    resource.MustParse("3"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  6. pkg/apis/core/types.go

    	// Match all pod objects that have best effort quality of service
    	ResourceQuotaScopeBestEffort ResourceQuotaScope = "BestEffort"
    	// Match all pod objects that do not have best effort quality of service
    	ResourceQuotaScopeNotBestEffort ResourceQuotaScope = "NotBestEffort"
    	// Match all pod objects that have priority class mentioned
    	ResourceQuotaScopePriorityClass ResourceQuotaScope = "PriorityClass"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/core/v1/types.go

    	// Match all pod objects that have best effort quality of service
    	ResourceQuotaScopeBestEffort ResourceQuotaScope = "BestEffort"
    	// Match all pod objects that do not have best effort quality of service
    	ResourceQuotaScopeNotBestEffort ResourceQuotaScope = "NotBestEffort"
    	// Match all pod objects that have priority class mentioned
    	ResourceQuotaScopePriorityClass ResourceQuotaScope = "PriorityClass"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  8. pkg/apis/core/validation/validation_test.go

    			core.ResourceLimitsCPU: resource.MustParse("200"),
    		},
    		Scopes: []core.ResourceQuotaScope{core.ResourceQuotaScopeTerminating},
    	}
    
    	nonTerminatingSpec := core.ResourceQuotaSpec{
    		Hard: core.ResourceList{
    			core.ResourceCPU: resource.MustParse("100"),
    		},
    		Scopes: []core.ResourceQuotaScope{core.ResourceQuotaScopeNotTerminating},
    	}
    
    	bestEffortSpec := core.ResourceQuotaSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation.go

    		return allErrs
    	}
    	hardLimits := sets.New[core.ResourceName]()
    	for k := range resourceQuotaSpec.Hard {
    		hardLimits.Insert(k)
    	}
    	fldPath := fld.Child("scopes")
    	scopeSet := sets.New[core.ResourceQuotaScope]()
    	for _, scope := range resourceQuotaSpec.Scopes {
    		if !helper.IsStandardResourceQuotaScope(scope) {
    			allErrs = append(allErrs, field.Invalid(fldPath, resourceQuotaSpec.Scopes, "unsupported scope"))
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/zz_generated.conversion.go

    func autoConvert_v1_ResourceQuotaSpec_To_core_ResourceQuotaSpec(in *v1.ResourceQuotaSpec, out *core.ResourceQuotaSpec, s conversion.Scope) error {
    	out.Hard = *(*core.ResourceList)(unsafe.Pointer(&in.Hard))
    	out.Scopes = *(*[]core.ResourceQuotaScope)(unsafe.Pointer(&in.Scopes))
    	out.ScopeSelector = (*core.ScopeSelector)(unsafe.Pointer(in.ScopeSelector))
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
Back to top