mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Merge pull request #129786 from JoelSpeed/drop-netip-variables
Drop declaration of IP/CDIR type CEL variables
This commit is contained in:
		@@ -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...))
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -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...))
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user