mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
mw/kubernetes: remove kService and kPod
Remove the intermediate step of gathering everyhing in a kPod and kService and extracting the msg.Service from there. Now findPods and findServices return []msg.Service. This cuts down on the code and also removed the double looping of finding the data we need, so it should be faster.
This commit is contained in:
@@ -30,7 +30,7 @@ func (k *Kubernetes) Federations(state request.Request, fname, fzone string) (ms
|
||||
if err != nil {
|
||||
return msg.Service{}, err
|
||||
}
|
||||
r, err := k.parseRequest(state)
|
||||
r, err := parseRequest(state)
|
||||
|
||||
lz := node.Labels[LabelZone]
|
||||
lr := node.Labels[LabelRegion]
|
||||
|
||||
Reference in New Issue
Block a user