Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for resourcequotastore (0.21 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/registry/core/resourcequota/storage/storage_test.go

    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "resourcequotas",
    	}
    	resourceQuotaStorage, statusStorage, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    	return resourceQuotaStorage, statusStorage, server
    }
    
    func validNewResourceQuota() *api.ResourceQuota {
    	return &api.ResourceQuota{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/resourcequotaspec.go

    // with apply.
    type ResourceQuotaSpecApplyConfiguration struct {
    	Hard          *v1.ResourceList                 `json:"hard,omitempty"`
    	Scopes        []v1.ResourceQuotaScope          `json:"scopes,omitempty"`
    	ScopeSelector *ScopeSelectorApplyConfiguration `json:"scopeSelector,omitempty"`
    }
    
    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. staging/src/k8s.io/apiserver/pkg/quota/v1/interfaces.go

    type UsageStatsOptions struct {
    	// Namespace where stats should be calculate
    	Namespace string
    	// Scopes that must match counted objects
    	Scopes []corev1.ResourceQuotaScope
    	// Resources are the set of resources to include in the measurement
    	Resources     []corev1.ResourceName
    	ScopeSelector *corev1.ScopeSelector
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 30 21:02:09 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/quota/v1/resources.go

    // If an error is returned, usage only contains the resources which encountered no calculation errors.
    func CalculateUsage(namespaceName string, scopes []corev1.ResourceQuotaScope, hardLimits corev1.ResourceList, registry Registry, scopeSelector *corev1.ScopeSelector) (corev1.ResourceList, error) {
    	// find the intersection between the hard resources on the quota
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 06 23:11:22 UTC 2021
    - 8.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top