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:
parent
2410f5b3f4
commit
cd1f2f1bbf
4 changed files with 36 additions and 45 deletions
|
@ -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].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue