Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ActualCost (0.1 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter.go

    				Detail: fmt.Sprintf("runtime cost could not be calculated for expression: %v, no further expression will be run", compilationResult.ExpressionAccessor.GetExpression()),
    			}
    		} else {
    			rtCost := evalDetails.ActualCost()
    			if rtCost == nil {
    				return nil, -1, &cel.Error{
    					Type:   cel.ErrorTypeInvalid,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    			return errs, -1
    		} else {
    			rtCost := evalDetails.ActualCost()
    			if rtCost == nil {
    				errs = append(errs, field.Invalid(fldPath, sts.Type, fmt.Sprintf("runtime cost could not be calculated for validation rule: %v, no further validation rules will be run", ruleErrorString(rule))))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    		t.Fatalf("%v", err)
    	}
    	_, details, err := prog.Eval(map[string]interface{}{"authorizer": NewAuthorizerVal(nil, alwaysAllowAuthorizer{})})
    	if err != nil {
    		t.Fatalf("%v", err)
    	}
    	cost := details.ActualCost()
    	if *cost != expectRuntimeCost {
    		t.Errorf("Expected cost of %d but got %d", expectRuntimeCost, *cost)
    	}
    }
    
    func TestSize(t *testing.T) {
    	exactSize := func(size int) checker.SizeEstimate {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top