@@ -258,7 +258,7 @@ func TestMatchKinds(t *testing.T) {
258
258
t .Fatal (err )
259
259
}
260
260
celOpts := cel.OptionalVariableDeclarations {HasParams : true }
261
- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
261
+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
262
262
matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchKindsCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "kind" , test .name )
263
263
264
264
obj := & unstructured.Unstructured {}
@@ -463,7 +463,7 @@ func TestMatchNameGlob(t *testing.T) {
463
463
t .Fatal (err )
464
464
}
465
465
celOpts := cel.OptionalVariableDeclarations {HasParams : true }
466
- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
466
+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
467
467
matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchNameGlobCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "name" , test .name )
468
468
469
469
constraint := & unstructured.Unstructured {Object : map [string ]interface {}{}}
@@ -633,7 +633,7 @@ func TestMatchNamespacesGlob(t *testing.T) {
633
633
t .Fatal (err )
634
634
}
635
635
celOpts := cel.OptionalVariableDeclarations {HasParams : true }
636
- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
636
+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
637
637
matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchNamespacesGlobCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "name" , test .name )
638
638
639
639
versionedAttributes , err := RequestToVersionedAttributes (subTest .request )
@@ -807,7 +807,7 @@ func TestMatchExcludedNamespacesGlob(t *testing.T) {
807
807
t .Fatal (err )
808
808
}
809
809
celOpts := cel.OptionalVariableDeclarations {HasParams : true }
810
- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
810
+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
811
811
matcher := matchconditions .NewMatcher (filterCompiler .Compile (MatchExcludedNamespacesGlobCEL (), celOpts , environment .StoredExpressions ), ptr.To [v1.FailurePolicyType ](v1 .Fail ), "matchTest" , "name" , test .name )
812
812
813
813
versionedAttributes , err := RequestToVersionedAttributes (subTest .request )
@@ -871,7 +871,7 @@ func TestParamsBinding(t *testing.T) {
871
871
t .Fatal (err )
872
872
}
873
873
celOpts := cel.OptionalVariableDeclarations {HasParams : true }
874
- filterCompiler .CompileAndStoreVariables (BindParamsCEL (), celOpts , environment .StoredExpressions )
874
+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
875
875
matcher := matchconditions .NewMatcher (
876
876
filterCompiler .Compile (
877
877
[]cel.ExpressionAccessor {
@@ -952,7 +952,7 @@ func TestObjectBinding(t *testing.T) {
952
952
t .Fatal (err )
953
953
}
954
954
celOpts := cel.OptionalVariableDeclarations {HasParams : true }
955
- filterCompiler .CompileAndStoreVariables (BindObjectCEL (), celOpts , environment .StoredExpressions )
955
+ filterCompiler .CompileAndStoreVariables (AllVariablesCEL (), celOpts , environment .StoredExpressions )
956
956
matcher := matchconditions .NewMatcher (
957
957
filterCompiler .Compile (
958
958
[]cel.ExpressionAccessor {
0 commit comments