mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
DRA CEL: avoid redundant cel.CostTracking
It's already called by the base environment.
This commit is contained in:
parent
5e514f5fcb
commit
39f2592863
@ -136,7 +136,6 @@ func (c compiler) CompileCELExpression(expression string, envType environment.Ty
|
|||||||
// This call here should override that. In practice it shouldn't
|
// This call here should override that. In practice it shouldn't
|
||||||
// matter because the limits are the same.
|
// matter because the limits are the same.
|
||||||
cel.CostLimit(resourceapi.CELSelectorExpressionMaxCost),
|
cel.CostLimit(resourceapi.CELSelectorExpressionMaxCost),
|
||||||
cel.CostTracking(estimator),
|
|
||||||
cel.InterruptCheckFrequency(celconfig.CheckFrequency),
|
cel.InterruptCheckFrequency(celconfig.CheckFrequency),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user