Enable custom election id for status sync.

This commit is contained in:
shijunqian 2017-02-27 15:35:04 +08:00
parent 85369f87cf
commit 2d526b213c
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)")