diff options
author | 2017-08-23 07:19:41 +0100 | |
---|---|---|
committer | 2017-08-23 07:19:41 +0100 | |
commit | 61fc672e1939df3dd365c9d836427d8eec1e5e7d (patch) | |
tree | 3b883eb87523408e68d88206dcee7b084e8dc650 /middleware/kubernetes/parse.go | |
parent | 7f5086e97aa8c8b0de945d5dac361bb8ba8afe09 (diff) | |
download | coredns-61fc672e1939df3dd365c9d836427d8eec1e5e7d.tar.gz coredns-61fc672e1939df3dd365c9d836427d8eec1e5e7d.tar.zst coredns-61fc672e1939df3dd365c9d836427d8eec1e5e7d.zip |
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.
Diffstat (limited to 'middleware/kubernetes/parse.go')
-rw-r--r-- | middleware/kubernetes/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |