Skip to content

Commit 39f2592

Browse files
committed
DRA CEL: avoid redundant cel.CostTracking
It's already called by the base environment.
1 parent 5e514f5 commit 39f2592

File tree

1 file changed

+0
-1
lines changed
  • staging/src/k8s.io/dynamic-resource-allocation/cel

1 file changed

+0
-1
lines changed

staging/src/k8s.io/dynamic-resource-allocation/cel/compile.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ func (c compiler) CompileCELExpression(expression string, envType environment.Ty
136136
// This call here should override that. In practice it shouldn't
137137
// matter because the limits are the same.
138138
cel.CostLimit(resourceapi.CELSelectorExpressionMaxCost),
139-
cel.CostTracking(estimator),
140139
cel.InterruptCheckFrequency(celconfig.CheckFrequency),
141140
)
142141
if err != nil {

0 commit comments

Comments
 (0)