mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-29 01:04:15 -04:00 
			
		
		
		
	mw/kubernete: small cleanup (#810)
* mw/kubernete: small cleanup Small cleanup, avoid pointer to []msg.Services and just returns the msg.Service. * Actually compile * testss
This commit is contained in:
		| @@ -24,15 +24,6 @@ func (i interfaceAddrs) interfaceAddrs() ([]net.Addr, error) { | ||||
| 	return net.InterfaceAddrs() | ||||
| } | ||||
|  | ||||
| func (k *Kubernetes) recordsForNS(r recordRequest, svcs *[]msg.Service) error { | ||||
| 	ns := k.coreDNSRecord() | ||||
| 	s := msg.Service{ | ||||
| 		Host: ns.A.String(), | ||||
| 		Key:  msg.Path(strings.Join([]string{ns.Hdr.Name, r.zone}, "."), "coredns")} | ||||
| 	*svcs = append(*svcs, s) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // DefaultNSMsg returns an msg.Service representing an A record for | ||||
| // ns.dns.[zone] -> dns service ip. This A record is needed to legitimize | ||||
| // the SOA response in middleware.NS(), which is hardcoded at ns.dns.[zone]. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user