Add note about status update (#2694)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-06-23 09:17:57 -04:00 committed by GitHub
parent d136017e3d
commit 4877ecd19a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)