Avoid sync without a reachable master

This commit is contained in:
Manuel de Brito Fontes 2016-06-17 17:18:45 -04:00
parent 57c0eab11d
commit ed41a706b9
2 changed files with 19 additions and 6 deletions

View file

@ -130,6 +130,13 @@ func main() {
}
glog.Infof("Validated %v as the default backend", *defaultSvc)
if *nxgConfigMap != "" {
_, _, err := parseNsName(*nxgConfigMap)
if err != nil {
glog.Fatalf("configmap error: %v", err)
}
}
lbc, err := newLoadBalancerController(kubeClient, *resyncPeriod, *defaultSvc, *watchNamespace, *nxgConfigMap, *tcpConfigMapName, *udpConfigMapName, runtimePodInfo)
if err != nil {
glog.Fatalf("%v", err)