Merge pull request #351 from danielqsj/master

Enable custom election id for status sync.
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-27 09:19:15 -03:00 committed by GitHub
commit fb8e2d7373
3 changed files with 7 additions and 1 deletions

View file

@ -134,6 +134,7 @@ type Configuration struct {
Backend ingress.Controller
UpdateStatus bool
ElectionID string
}
// newIngressController creates an Ingress controller
@ -303,6 +304,7 @@ func newIngressController(config *Configuration) *GenericController {
Client: config.Client,
PublishService: ic.cfg.PublishService,
IngressLister: ic.ingLister,
ElectionID: config.ElectionID,
})
} else {
glog.Warning("Update of ingress status is disabled (flag --update-status=false was specified)")