Merge pull request #4451 from ElvinEfendi/avoid-redundant-lua-sync

post data to Lua only if it changes
This commit is contained in:
Kubernetes Prow Robot 2019-08-15 16:20:34 -07:00 committed by GitHub
commit 4b0aabc0c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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