diff options
Diffstat (limited to 'plugin/kubernetes/ns.go')
-rw-r--r-- | plugin/kubernetes/ns.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/kubernetes/ns.go b/plugin/kubernetes/ns.go index 2ccb51ef3..f3d33ee22 100644 --- a/plugin/kubernetes/ns.go +++ b/plugin/kubernetes/ns.go @@ -12,6 +12,10 @@ func isDefaultNS(name, zone string) bool { return strings.Index(name, defaultNSName) == 0 && strings.Index(name, zone) == len(defaultNSName) } +// nsAddr return the A record for the CoreDNS service in the cluster. If it fails that it fallsback +// on the local address of the machine we're running on. +// +// This function is rather expensive to run. func (k *Kubernetes) nsAddr() *dns.A { var ( svcName string |