Plugin/Kubernetes: Service and Endpoint Indexing (#1149)
* indexing * corrections
This commit is contained in:
parent
0c63248a0e
commit
b6b05eae8f
10 changed files with 501 additions and 26 deletions
|
@ -28,7 +28,7 @@ func (k *Kubernetes) localNodeName() string {
|
|||
}
|
||||
|
||||
// Find endpoint matching localIP
|
||||
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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue