aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes
diff options
context:
space:
mode:
authorGravatar cui fliter <imcusg@gmail.com> 2023-04-25 23:25:07 +0800
committerGravatar GitHub <noreply@github.com> 2023-04-25 11:25:07 -0400
commitee3999303dca34831ca67b684094d4b01cc2a20c (patch)
tree04e2acbf602a7a69f0351638c6c68fb05a57bd55 /plugin/kubernetes
parent7bced74f51e9927f939b50504a13585d04caf434 (diff)
downloadcoredns-ee3999303dca34831ca67b684094d4b01cc2a20c.tar.gz
coredns-ee3999303dca34831ca67b684094d4b01cc2a20c.tar.zst
coredns-ee3999303dca34831ca67b684094d4b01cc2a20c.zip
fix some comments (#6052)
Signed-off-by: cui fliter <imcusg@gmail.com>
Diffstat (limited to 'plugin/kubernetes')
-rw-r--r--plugin/kubernetes/controller.go4
1 files changed, 2 insertions, 2 deletions
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)
}