From 148a99442dcd00fcda53858ada95f8148a9edd14 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 24 Sep 2017 19:37:43 +0100 Subject: 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 --- plugin/kubernetes/apiproxy.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugin/kubernetes/apiproxy.go') diff --git a/plugin/kubernetes/apiproxy.go b/plugin/kubernetes/apiproxy.go index 3e185f898..196ca5e60 100644 --- a/plugin/kubernetes/apiproxy.go +++ b/plugin/kubernetes/apiproxy.go @@ -23,10 +23,8 @@ type apiProxy struct { func (p *proxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { upstream := p.Select() network := "tcp" - if upstream.Network != "" { - network = upstream.Network - } address := upstream.Name + d, err := net.Dial(network, address) if err != nil { log.Printf("[ERROR] Unable to establish connection to upstream %s://%s: %s", network, address, err) -- cgit v1.2.3