diff --git a/constraint/pkg/client/drivers/k8scel/driver.go b/constraint/pkg/client/drivers/k8scel/driver.go index 8e66cc16d..576e25835 100755 --- a/constraint/pkg/client/drivers/k8scel/driver.go +++ b/constraint/pkg/client/drivers/k8scel/driver.go @@ -84,6 +84,7 @@ func (d *Driver) AddTemplate(_ context.Context, ct *templates.ConstraintTemplate return err } vapVars = append(vapVars, vapVarsSuffix...) + // Defaulting to false in MustBaseEnvSet to not enforce strict cost calculation for CEL. This was the default behavior before strictCost is introduced. filterCompiler, err := cel.NewCompositedCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), false)) if err != nil { return err