Add note about status update (#2694)
This commit is contained in:
parent
d136017e3d
commit
4877ecd19a
1 changed files with 2 additions and 1 deletions
|
@ -183,8 +183,9 @@ func NewStatusSyncer(config Config) Sync {
|
|||
OnStartedLeading: func(stop <-chan struct{}) {
|
||||
glog.V(2).Infof("I am the new status update leader")
|
||||
go st.syncQueue.Run(time.Second, stop)
|
||||
// when this instance is the leader we need to enqueue
|
||||
// an item to trigger the update of the Ingress status.
|
||||
wait.PollUntil(updateInterval, func() (bool, error) {
|
||||
// send a dummy object to the queue to force a sync
|
||||
st.syncQueue.EnqueueTask(task.GetDummyObject("sync status"))
|
||||
return false, nil
|
||||
}, stop)
|
||||
|
|
Loading…
Reference in a new issue