Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsStandardResourceQuotaScope (0.27 sec)

  1. pkg/apis/core/helper/helpers.go

    	core.ResourceQuotaScopeNotTerminating,
    	core.ResourceQuotaScopeBestEffort,
    	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
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    		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"))
    		}
    		for _, k := range sets.List(hardLimits) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top