File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
internal/mutation/transformer Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020 "fmt"
2121
2222 "github.com/google/cel-go/cel"
23- "github.com/google/cel-go/checker /decls"
23+ "github.com/google/cel-go/common /decls"
2424 "github.com/tidwall/gjson"
2525 "github.com/tidwall/sjson"
2626
@@ -35,10 +35,10 @@ type celTransformer struct {
3535}
3636
3737func NewCEL (mut * syncagentv1alpha1.ResourceCELMutation ) (* celTransformer , error ) {
38- env , err := cel .NewEnv (cel .Declarations (
39- decls .NewVar ("self" , decls . Dyn ),
40- decls .NewVar ("other" , decls . Dyn ),
41- decls .NewVar ("value" , decls . Dyn ),
38+ env , err := cel .NewEnv (cel .VariableDecls (
39+ decls .NewVariable ("self" , cel . DynType ),
40+ decls .NewVariable ("other" , cel . DynType ),
41+ decls .NewVariable ("value" , cel . DynType ),
4242 ))
4343 if err != nil {
4444 return nil , fmt .Errorf ("failed to create CEL env: %w" , err )
You can’t perform that action at this time.
0 commit comments