plugin/kubernetes: Enable protobuf, Update client api package (#1114)

* vendor

* code
This commit is contained in:
Chris O'Haver 2017-09-29 15:58:50 -04:00 committed by John Belamaric
parent 45b0252c1a
commit 4b3a430ff2
1511 changed files with 286873 additions and 253612 deletions

View file

@ -1,6 +1,8 @@
package kubernetes
import "net"
import (
"net"
)
func localPodIP() net.IP {
addrs, err := net.InterfaceAddrs()
@ -26,8 +28,7 @@ func (k *Kubernetes) localNodeName() string {
}
// Find endpoint matching localIP
endpointsList := k.APIConn.EndpointsList()
for _, ep := range endpointsList.Items {
for _, ep := range k.APIConn.EndpointsList() {
for _, eps := range ep.Subsets {
for _, addr := range eps.Addresses {
if localIP.Equal(net.ParseIP(addr.IP)) {