PortalIP no longer exists

This commit is contained in:
Asim 2015-05-29 09:58:49 +01:00
parent 5cc97151fc
commit fa2c27b64f
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ func (c *kregistry) GetService(name string) (*registry.Service, error) {
for _, item := range services.Items {
ks.Nodes = append(ks.Nodes, &registry.Node{
Address: item.Spec.PortalIP,
Address: item.Spec.ClusterIP,
Port: item.Spec.Ports[0].Port,
})
}

View File

@ -26,7 +26,7 @@ func (k *watcher) OnUpdate(services []api.Service) {
}
activeServices.Insert(name)
serviceIP := net.ParseIP(svc.Spec.PortalIP)
serviceIP := net.ParseIP(svc.Spec.ClusterIP)
ks := &registry.Service{
Name: name,