Update leader election methods
This commit is contained in:
parent
6c33bee8fd
commit
4c46ee95c9
3 changed files with 14 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue