- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CostEstimatorOptions (0.33 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/environment/base.go
library.Lists(), // cel-go v0.17.7 change the cost of has() from 0 to 1, but also provided the CostEstimatorOptions option to preserve the old behavior, so we enabled it at the same time we bumped our cel version to v0.17.7. // Since it is a regression fix, we apply it uniformly to all code use v0.17.7. cel.CostEstimatorOptions(checker.PresenceTestHasCost(false)), }, ProgramOptions: []cel.ProgramOption{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 15:51:08 UTC 2024 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go
Quantity(), ext.Sets(), IP(), CIDR(), Format(), cel.OptionalTypes(), // cel-go v0.17.7 introduced CostEstimatorOptions. // Previous the presence has a cost of 0 but cel fixed it to 1. We still set to 0 here to avoid breaking changes. cel.CostEstimatorOptions(checker.PresenceTestHasCost(false)), ) if err != nil { t.Fatalf("%v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 40.8K bytes - Viewed (0)