Update leader election methods

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-09-27 14:57:32 -03:00
parent 6c33bee8fd
commit 4c46ee95c9
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
3 changed files with 14 additions and 8 deletions

View file

@ -18,6 +18,7 @@ package controller
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
@ -256,7 +257,7 @@ func (n *NGINXController) Start() {
n.store.Run(n.stopCh)
if n.syncStatus != nil {
go n.syncStatus.Run()
go n.syncStatus.Run(context.Background())
}
cmd := nginxExecCommand()