- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ActualCost (0.09 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/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) -
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) -
cmd/kubeadm/app/util/endpoint_test.go
t.Run(rt.name, func(t *testing.T) { actualHost, actualPort, actualError := ParseHostPort(rt.hostport) if (actualError != nil) && !rt.expectedError { t.Errorf("%s unexpected failure: %v", rt.name, actualError) return } else if (actualError == nil) && rt.expectedError { t.Errorf("%s passed when expected to fail", rt.name) return } if actualHost != rt.expectedHost {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 23 03:19:26 UTC 2019 - 10K bytes - Viewed (0)