@@ -258,7 +258,7 @@ func TestMatchKinds(t *testing.T) {
258258 t .Fatal (err )
259259 }
260260 celOpts := cel.OptionalVariableDeclarations {HasParams : true }
261- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
261+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
262262 matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchKindsCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "kind" , test .name )
263263
264264 obj := & unstructured.Unstructured {}
@@ -463,7 +463,7 @@ func TestMatchNameGlob(t *testing.T) {
463463 t .Fatal (err )
464464 }
465465 celOpts := cel.OptionalVariableDeclarations {HasParams : true }
466- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
466+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
467467 matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchNameGlobCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "name" , test .name )
468468
469469 constraint := & unstructured.Unstructured {Object : map [string ]interface {}{}}
@@ -633,7 +633,7 @@ func TestMatchNamespacesGlob(t *testing.T) {
633633 t .Fatal (err )
634634 }
635635 celOpts := cel.OptionalVariableDeclarations {HasParams : true }
636- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
636+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
637637 matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchNamespacesGlobCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "name" , test .name )
638638
639639 versionedAttributes , err := RequestToVersionedAttributes (subTest .request )
@@ -807,7 +807,7 @@ func TestMatchExcludedNamespacesGlob(t *testing.T) {
807807 t .Fatal (err )
808808 }
809809 celOpts := cel.OptionalVariableDeclarations {HasParams : true }
810- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
810+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
811811 matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchExcludedNamespacesGlobCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "name" , test .name )
812812
813813 versionedAttributes , err := RequestToVersionedAttributes (subTest .request )
@@ -871,7 +871,7 @@ func TestParamsBinding(t *testing.T) {
871871 t .Fatal (err )
872872 }
873873 celOpts := cel.OptionalVariableDeclarations {HasParams : true }
874- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
874+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
875875 matcher := matchconditions .NewMatcher (
876876 filterCompiler .Compile (
877877 []cel.ExpressionAccessor {
@@ -952,7 +952,7 @@ func TestObjectBinding(t *testing.T) {
952952 t .Fatal (err )
953953 }
954954 celOpts := cel.OptionalVariableDeclarations {HasParams : true }
955- filterCompiler .CompileAndStoreVariables (BindObjectCEL (), celOpts , environment .StoredExpressions )
955+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
956956 matcher := matchconditions .NewMatcher (
957957 filterCompiler .Compile (
958958 []cel.ExpressionAccessor {
0 commit comments