- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ActualCost (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
} v, details, err := a.result.Program.ContextEval(a.context, a.activation) if details == nil { return types.NewErr("unable to get evaluation details of variable %q", a.name) } costPtr := details.ActualCost() if costPtr == nil { return types.NewErr("unable to calculate cost of variable %q", a.name) } cost := int64(*costPtr) if *costPtr > math.MaxInt64 { cost = math.MaxInt64 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 7.4K bytes - Viewed (0) -
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) -
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)