File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
staging/src/k8s.io/apiserver/pkg/cel/library Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,7 @@ var cidrLibraryDecls = map[string][]cel.FunctionOpt{
160
160
}
161
161
162
162
func (* cidrs ) CompileOptions () []cel.EnvOption {
163
- options := []cel.EnvOption {cel .Types (apiservercel .CIDRType ),
164
- cel .Variable (apiservercel .CIDRType .TypeName (), types .NewTypeTypeWithParam (apiservercel .CIDRType )),
165
- }
163
+ options := []cel.EnvOption {cel .Types (apiservercel .CIDRType )}
166
164
for name , overloads := range cidrLibraryDecls {
167
165
options = append (options , cel .Function (name , overloads ... ))
168
166
}
Original file line number Diff line number Diff line change @@ -187,9 +187,7 @@ var ipLibraryDecls = map[string][]cel.FunctionOpt{
187
187
}
188
188
189
189
func (* ip ) CompileOptions () []cel.EnvOption {
190
- options := []cel.EnvOption {cel .Types (apiservercel .IPType ),
191
- cel .Variable (apiservercel .IPType .TypeName (), types .NewTypeTypeWithParam (apiservercel .IPType )),
192
- }
190
+ options := []cel.EnvOption {cel .Types (apiservercel .IPType )}
193
191
for name , overloads := range ipLibraryDecls {
194
192
options = append (options , cel .Function (name , overloads ... ))
195
193
}
You can’t perform that action at this time.
0 commit comments