DRA CEL: avoid redundant cel.CostTracking

It's already called by the base environment.
This commit is contained in:
Patrick Ohly 2024-10-17 17:50:41 +02:00
parent 5e514f5fcb
commit 39f2592863

View File

@ -136,7 +136,6 @@ func (c compiler) CompileCELExpression(expression string, envType environment.Ty
// This call here should override that. In practice it shouldn't
// matter because the limits are the same.
cel.CostLimit(resourceapi.CELSelectorExpressionMaxCost),
cel.CostTracking(estimator),
cel.InterruptCheckFrequency(celconfig.CheckFrequency),
)
if err != nil {