mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Return no items if less than 3 items in service segments
This commit is contained in:
		| @@ -182,6 +182,9 @@ func (k *Kubernetes) Records(name string, exact bool) ([]msg.Service, error) { | |||||||
| 	) | 	) | ||||||
|  |  | ||||||
| 	zone, serviceSegments := k.getZoneForName(name) | 	zone, serviceSegments := k.getZoneForName(name) | ||||||
|  | 	if len(serviceSegments) < 3 { | ||||||
|  | 		return nil, errNoItems | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	// TODO: Implementation above globbed together segments for the serviceName if | 	// TODO: Implementation above globbed together segments for the serviceName if | ||||||
| 	//       multiple segments remained. Determine how to do similar globbing using | 	//       multiple segments remained. Determine how to do similar globbing using | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user