Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for resourcequotastore (0.59 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/apis/core/zz_generated.deepcopy.go

    		*out = make(ResourceList, len(*in))
    		for key, val := range *in {
    			(*out)[key] = val.DeepCopy()
    		}
    	}
    	if in.Scopes != nil {
    		in, out := &in.Scopes, &out.Scopes
    		*out = make([]ResourceQuotaScope, len(*in))
    		copy(*out, *in)
    	}
    	if in.ScopeSelector != nil {
    		in, out := &in.ScopeSelector, &out.ScopeSelector
    		*out = new(ScopeSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    		*out = make(ResourceList, len(*in))
    		for key, val := range *in {
    			(*out)[key] = val.DeepCopy()
    		}
    	}
    	if in.Scopes != nil {
    		in, out := &in.Scopes, &out.Scopes
    		*out = make([]ResourceQuotaScope, len(*in))
    		copy(*out, *in)
    	}
    	if in.ScopeSelector != nil {
    		in, out := &in.ScopeSelector, &out.ScopeSelector
    		*out = new(ScopeSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/generated.pb.go

    			postIndex := iNdEx + intStringLen
    			if postIndex < 0 {
    				return ErrInvalidLengthGenerated
    			}
    			if postIndex > l {
    				return io.ErrUnexpectedEOF
    			}
    			m.Scopes = append(m.Scopes, ResourceQuotaScope(dAtA[iNdEx:postIndex]))
    			iNdEx = postIndex
    		case 3:
    			if wireType != 2 {
    				return fmt.Errorf("proto: wrong wireType = %d for field ScopeSelector", wireType)
    			}
    			var msglen int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
Back to top