post data to Lua only if it changes

This commit is contained in:
Elvin Efendi 2019-08-15 14:57:51 -04:00
parent b5fecd0dc8
commit 05c889335d
3 changed files with 167 additions and 89 deletions

View file

@ -167,7 +167,7 @@ func (n *NGINXController) syncIngress(interface{}) error {
}
err := wait.ExponentialBackoff(retry, func() (bool, error) {
err := configureDynamically(pcfg)
err := n.configureDynamically(pcfg)
if err == nil {
klog.V(2).Infof("Dynamic reconfiguration succeeded.")
return true, nil