From 61fc672e1939df3dd365c9d836427d8eec1e5e7d Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 23 Aug 2017 07:19:41 +0100 Subject: mw/kubernetes: remove kPod and kServices (#969) Based up on: #939, but redone in a new PR with some cherry-picked commits: aacb91ef0b927683b21d6ee39dbddbd001334854 5dc34247b7d0136d9fe035f6b10d6b3e14ee7f2c This removes kPod and Kservice and creates []msg.Service from k.findPods and k.findServices. Updated few tests which I *think* are correct; they look correct to me. --- middleware/kubernetes/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'middleware/kubernetes/parse.go') diff --git a/middleware/kubernetes/parse.go b/middleware/kubernetes/parse.go index 4b09b15f9..cadaaa3a1 100644 --- a/middleware/kubernetes/parse.go +++ b/middleware/kubernetes/parse.go @@ -26,7 +26,7 @@ type recordRequest struct { // parseRequest parses the qname to find all the elements we need for querying k8s. Anything // that is not parsed will have the wildcard "*" value (except r.endpoint). // Potential underscores are stripped from _port and _protocol. -func (k *Kubernetes) parseRequest(state request.Request) (r recordRequest, err error) { +func parseRequest(state request.Request) (r recordRequest, err error) { // 3 Possible cases: // 1. _port._protocol.service.namespace.pod|svc.zone // 2. (endpoint): endpoint.service.namespace.pod|svc.zone -- cgit v1.2.3