Merge pull request #351 from danielqsj/master
Enable custom election id for status sync.
This commit is contained in:
commit
fb8e2d7373
3 changed files with 7 additions and 1 deletions
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue