Merge pull request #515 from brendandburns/fix

Add some more logging to service updates.
This commit is contained in:
Daniel Smith 2014-07-18 10:18:04 -07:00
commit 64d4e55624

View File

@ -79,6 +79,10 @@ func (e *EndpointController) SyncServiceEndpoints() error {
glog.Errorf("Failed to find port for service: %v, %v", service, err)
continue
}
if len(pod.CurrentState.PodIP) == 0 {
glog.Errorf("Failed to find an IP for pod: %v", pod)
continue
}
endpoints[ix] = net.JoinHostPort(pod.CurrentState.PodIP, strconv.Itoa(port))
}
err = e.serviceRegistry.UpdateEndpoints(api.Endpoints{