Skip to content

Commit

Permalink
adding comment for defaulting to not enforcing strictCost calculation…
Browse files Browse the repository at this point in the history
… for CEL

Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Aug 2, 2024
1 parent 8a84fb9 commit b0e437e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions constraint/pkg/client/drivers/k8scel/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0e437e

Please sign in to comment.