mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Plugin/Kubernetes: Service and Endpoint Indexing (#1149)
* indexing * corrections
This commit is contained in:
committed by
John Belamaric
parent
0c63248a0e
commit
b6b05eae8f
@@ -23,7 +23,7 @@ func (k *Kubernetes) nsAddr() *dns.A {
|
||||
rr.A = localIP
|
||||
|
||||
FindEndpoint:
|
||||
for _, ep := range k.APIConn.EndpointsList() {
|
||||
for _, ep := range k.APIConn.EpIndexReverse(localIP.String()) {
|
||||
for _, eps := range ep.Subsets {
|
||||
for _, addr := range eps.Addresses {
|
||||
if localIP.Equal(net.ParseIP(addr.IP)) {
|
||||
|
||||
Reference in New Issue
Block a user