Merge pull request #697 from lead4good/master

Adding support for externalIP Services
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-08-25 12:09:46 -04:00 committed by GitHub
commit 0a6f39650f
2 changed files with 11 additions and 5 deletions

View file

@ -133,13 +133,16 @@ func NewIngressController(backend ingress.Controller) *GenericController {
}
if len(svc.Status.LoadBalancer.Ingress) == 0 {
// We could poll here, but we instead just exit and rely on k8s to restart us
glog.Fatalf("service %s does not (yet) have ingress points", *publishSvc)
if len(svc.Spec.ExternalIPs) > 0 {
glog.Infof("service %v validated as assigned with externalIP", *publishSvc)
} else {
// We could poll here, but we instead just exit and rely on k8s to restart us
glog.Fatalf("service %s does not (yet) have ingress points", *publishSvc)
}
} else {
glog.Infof("service %v validated as source of Ingress status", *publishSvc)
}
glog.Infof("service %v validated as source of Ingress status", *publishSvc)
}
if *watchNamespace != "" {
_, err = k8s.IsValidNamespace(kubeClient, *watchNamespace)

View file

@ -259,6 +259,9 @@ func (s *statusSync) runningAddresses() ([]string, error) {
addrs = append(addrs, ip.IP)
}
}
for _, ip := range svc.Spec.ExternalIPs {
addrs = append(addrs, ip)
}
return addrs, nil
}