Merge pull request #44167 from soundcloud/mr/restore-updating-endpoints-log-message

Automatic merge from submit-queue

Restore "Setting endpoints" log message

**What this PR does / why we need it**:

The "Setting endpoints" message from kube-proxy at high verbosity was
lost as part of a larger simplification in kubernetes/kubernetes#42747.

This change brings it back, simply outputting the just-constructed
addresses list.

I need this message to monitor delays in propagating endpoints changes across nodes.

**Release note**:

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-04-06 14:04:09 -07:00 committed by GitHub
commit 6cd23c6023

View File

@ -662,6 +662,13 @@ func accumulateEndpointsMap(endpoints *api.Endpoints, hostname string,
}
(*newEndpoints)[svcPort] = append((*newEndpoints)[svcPort], epInfo)
}
if glog.V(3) {
newEPList := []string{}
for _, ep := range (*newEndpoints)[svcPort] {
newEPList = append(newEPList, ep.endpoint)
}
glog.Infof("Setting endpoints for %q to %+v", svcPort, newEPList)
}
}
}
}