mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	k8s_external can now resolve CNAME returned by AWS ELB/NLB (#3916)
Automatically submitted.
This commit is contained in:
		| @@ -62,7 +62,12 @@ func toService(skipCleanup bool, svc *api.Service) *Service { | ||||
|  | ||||
| 	li := copy(s.ExternalIPs, svc.Spec.ExternalIPs) | ||||
| 	for i, lb := range svc.Status.LoadBalancer.Ingress { | ||||
| 		s.ExternalIPs[li+i] = lb.IP | ||||
| 		if lb.IP != "" { | ||||
| 			s.ExternalIPs[li+i] = lb.IP | ||||
| 			continue | ||||
| 		} | ||||
| 		s.ExternalIPs[li+i] = lb.Hostname | ||||
|  | ||||
| 	} | ||||
|  | ||||
| 	if !skipCleanup { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user