Merge pull request #129786 from JoelSpeed/drop-netip-variables

Drop declaration of IP/CDIR type CEL variables
This commit is contained in:
Kubernetes Prow Robot 2025-01-23 10:14:59 -08:00 committed by GitHub
commit 6b7b8e89ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -160,9 +160,7 @@ var cidrLibraryDecls = map[string][]cel.FunctionOpt{
}
func (*cidrs) CompileOptions() []cel.EnvOption {
options := []cel.EnvOption{cel.Types(apiservercel.CIDRType),
cel.Variable(apiservercel.CIDRType.TypeName(), types.NewTypeTypeWithParam(apiservercel.CIDRType)),
}
options := []cel.EnvOption{cel.Types(apiservercel.CIDRType)}
for name, overloads := range cidrLibraryDecls {
options = append(options, cel.Function(name, overloads...))
}

View File

@ -187,9 +187,7 @@ var ipLibraryDecls = map[string][]cel.FunctionOpt{
}
func (*ip) CompileOptions() []cel.EnvOption {
options := []cel.EnvOption{cel.Types(apiservercel.IPType),
cel.Variable(apiservercel.IPType.TypeName(), types.NewTypeTypeWithParam(apiservercel.IPType)),
}
options := []cel.EnvOption{cel.Types(apiservercel.IPType)}
for name, overloads := range ipLibraryDecls {
options = append(options, cel.Function(name, overloads...))
}