Skip to content

Commit ff9ef07

Browse files
cici37pohly
authored andcommitted
Apply strictCost for DRA
1 parent 99cc395 commit ff9ef07

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (c CompilationResult) DeviceMatches(ctx context.Context, input Device) (boo
209209
}
210210

211211
func mustBuildEnv() *environment.EnvSet {
212-
envset := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), false /* strictCost */)
212+
envset := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true /* strictCost */)
213213
field := func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField {
214214
return apiservercel.NewDeclField(name, declType, required, nil, nil)
215215
}

0 commit comments

Comments
 (0)