Add event for configmap update

This commit is contained in:
Manuel de Brito Fontes 2018-01-18 20:04:40 -03:00
parent 4fe8fc2e41
commit 0287024598
2 changed files with 8 additions and 2 deletions

View file

@ -291,6 +291,10 @@ func (n *NGINXController) Start() {
break
}
glog.V(3).Infof("Event %v received - object %v", evt.Type, evt.Obj)
if evt.Type == store.ConfigurationEvent {
n.SetForceReload(true)
}
n.syncQueue.Enqueue(evt.Obj)
case <-n.stopCh:
break