Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 296 for evaluators (0.47 sec)

  1. pkg/controller/resourcequota/resource_quota_monitor.go

    			continue
    		}
    
    		// check if we need to create an evaluator for this resource (if none previously registered)
    		evaluator := qm.registry.Get(resource.GroupResource())
    		if evaluator == nil {
    			listerFunc := generic.ListerFuncForResourceFunc(qm.informerFactory.ForResource)
    			listResourceFunc := generic.ListResourceUsingListerFunc(listerFunc, resource)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/call.go

    				// Update x.expr so that we can record the partially instantiated function.
    				x.expr = inst
    			} else {
    				// x was instantiated: we must record it here because we didn't
    				// use the usual expression evaluators.
    				check.record(&x)
    			}
    			resList = []*operand{&x}
    		} else {
    			// x is not a function instantiation (it may still be a generic function).
    			check.rawExpr(nil, &x, e, nil, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  3. pkg/controller/resourcequota/resource_quota_controller.go

    	for constraint := range resourceQuota.Status.Hard {
    		if _, usageFound := resourceQuota.Status.Used[constraint]; !usageFound {
    			matchedResources := []v1.ResourceName{constraint}
    			for _, evaluator := range rq.registry.List() {
    				if intersection := evaluator.MatchingResources(matchedResources); len(intersection) > 0 {
    					rq.missingUsageQueue.Add(key)
    					return
    				}
    			}
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. cmd/kube-controller-manager/app/core.go

    		IgnoredResourcesFunc:      quotaConfiguration.IgnoredResources,
    		InformersStarted:          controllerContext.InformersStarted,
    		Registry:                  generic.NewRegistry(quotaConfiguration.Evaluators()),
    		UpdateFilter:              quotainstall.DefaultUpdateFilter(),
    	}
    	resourceQuotaController, err := resourcequotacontroller.NewController(ctx, resourceQuotaControllerOptions)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 39K bytes
    - Viewed (0)
  5. pkg/controller/resourcequota/resource_quota_controller_test.go

    		IgnoredResourcesFunc:      quotaConfiguration.IgnoredResources,
    		DiscoveryFunc:             discoveryFunc,
    		Registry:                  generic.NewRegistry(quotaConfiguration.Evaluators()),
    		InformersStarted:          alwaysStarted,
    		InformerFactory:           informerFactory,
    	}
    	_, ctx := ktesting.NewTestContext(t)
    	qc, err := NewController(ctx, resourceQuotaControllerOptions)
    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. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/EvaluationContextTest.groovy

            when:
            evaluator1.apply(owner) {
                evaluator2.apply(this.owner) {}
            }
    
            then:
            EvaluationContext.CircularEvaluationException ex = thrown()
            ex.evaluationCycle == [owner, owner]
    
            where:
            evaluator1         | evaluator2
            evaluateInBlock()  | evaluateInLambda()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:33 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    		}
    	}
    	return result, nil
    }
    
    // objectCountEvaluator provides an implementation for quota.Evaluator
    // that associates usage of the specified resource based on the number of items
    // returned by the specified listing function.
    type objectCountEvaluator struct {
    	// GroupResource that this evaluator tracks.
    	// It is used to construct a generic object count quota name
    	groupResource schema.GroupResource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/audit/evaluator.go

    import (
    	"k8s.io/apiserver/pkg/apis/audit"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    )
    
    // RequestAuditConfig is the evaluated audit configuration that is applicable to
    // a given request. PolicyRuleEvaluator evaluates the audit policy against the
    // authorizer attributes and returns a RequestAuditConfig that applies to the request.
    type RequestAuditConfig struct {
    	// Level at which the request is being audited at
    	Level audit.Level
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authentication/cel/mapper.go

    }
    
    func (m *mapper) eval(ctx context.Context, input map[string]interface{}) ([]EvaluationResult, error) {
    	evaluations := make([]EvaluationResult, len(m.compilationResults))
    
    	for i, compilationResult := range m.compilationResults {
    		var evaluation = &evaluations[i]
    		evaluation.ExpressionAccessor = compilationResult.ExpressionAccessor
    
    		evalResult, _, err := compilationResult.Program.ContextEval(ctx, input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 20:16:09 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter.go

    			Annotations:                namespace.Annotations,
    			Finalizers:                 namespace.Finalizers,
    		},
    	}
    }
    
    // CompilationErrors returns a list of all the errors from the compilation of the evaluator
    func (e *filter) CompilationErrors() []error {
    	compilationErrors := []error{}
    	for _, result := range e.compilationResults {
    		if result.Error != nil {
    			compilationErrors = append(compilationErrors, result.Error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top