diff options
author | 2017-09-24 19:37:43 +0100 | |
---|---|---|
committer | 2017-09-24 19:37:43 +0100 | |
commit | 148a99442dcd00fcda53858ada95f8148a9edd14 (patch) | |
tree | 90b863a72fdc1f16b6ec2b0ba495f8cb9eec58a5 /plugin/kubernetes/kubernetes.go | |
parent | 102cfbd7fec2a2f32d73167e44b3417f153a7602 (diff) | |
download | coredns-148a99442dcd00fcda53858ada95f8148a9edd14.tar.gz coredns-148a99442dcd00fcda53858ada95f8148a9edd14.tar.zst coredns-148a99442dcd00fcda53858ada95f8148a9edd14.zip |
healhcheck: various cleanups (#1106)
* healhcheck: various cleanups
Network wasn't used. IgnorePaths wasn't used. Move checkdown function to
common function shared between proxy protocols. And some naming fixed.
Also reset the Fails on a succesful healthcheck back to 0.
remove newlines from log
* compile
* fix test
Diffstat (limited to 'plugin/kubernetes/kubernetes.go')
-rw-r--r-- | plugin/kubernetes/kubernetes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/kubernetes.go b/plugin/kubernetes/kubernetes.go index 90fcd6182..afc48d0e0 100644 --- a/plugin/kubernetes/kubernetes.go +++ b/plugin/kubernetes/kubernetes.go @@ -190,9 +190,9 @@ func (k *Kubernetes) getClientConfig() (*rest.Config, error) { down := false - uh.CheckMu.Lock() + uh.Lock() until := uh.OkUntil - uh.CheckMu.Unlock() + uh.Unlock() if !until.IsZero() && time.Now().After(until) { down = true |