aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/file/wildcard.go2
-rw-r--r--plugin/kubernetes/controller.go4
-rw-r--r--plugin/pkg/proxy/persistent.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugin/file/wildcard.go b/plugin/file/wildcard.go
index 9526cb53f..7e8e806a1 100644
--- a/plugin/file/wildcard.go
+++ b/plugin/file/wildcard.go
@@ -2,7 +2,7 @@ package file
import "github.com/miekg/dns"
-// replaceWithWildcard replaces the left most label with '*'.
+// replaceWithAsteriskLabel replaces the left most label with '*'.
func replaceWithAsteriskLabel(qname string) (wildcard string) {
i, shot := dns.NextLabel(qname, 0)
if shot {
diff --git a/plugin/kubernetes/controller.go b/plugin/kubernetes/controller.go
index a34b64143..7edd18ca9 100644
--- a/plugin/kubernetes/controller.go
+++ b/plugin/kubernetes/controller.go
@@ -605,7 +605,7 @@ func (dns *dnsControl) detectChanges(oldObj, newObj interface{}) {
dns.updateModified()
}
if emod {
- dns.updateExtModifed()
+ dns.updateExtModified()
}
case *object.Pod:
dns.updateModified()
@@ -749,7 +749,7 @@ func (dns *dnsControl) updateModified() {
}
// updateExtModified set dns.extModified to the current time.
-func (dns *dnsControl) updateExtModifed() {
+func (dns *dnsControl) updateExtModified() {
unix := time.Now().Unix()
atomic.StoreInt64(&dns.extModified, unix)
}
diff --git a/plugin/pkg/proxy/persistent.go b/plugin/pkg/proxy/persistent.go
index 0908ce96c..2dc8bde71 100644
--- a/plugin/pkg/proxy/persistent.go
+++ b/plugin/pkg/proxy/persistent.go
@@ -42,7 +42,7 @@ func newTransport(addr string) *Transport {
return t
}
-// connManagers manages the persistent connection cache for UDP and TCP.
+// connManager manages the persistent connection cache for UDP and TCP.
func (t *Transport) connManager() {
ticker := time.NewTicker(defaultExpire)
defer ticker.Stop()