Merge pull request #3505 from Shopify/watch-pod-lua

Update lua configuration_data when number of controller pod change
This commit is contained in:
Kubernetes Prow Robot 2018-12-17 00:10:30 -08:00 committed by GitHub
commit ee3a8fe581
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 113 additions and 19 deletions

View file

@ -163,6 +163,7 @@ func (n *NGINXController) syncIngress(interface{}) error {
UDPEndpoints: n.getStreamServices(n.cfg.UDPConfigMapName, apiv1.ProtocolUDP),
PassthroughBackends: passUpstreams,
BackendConfigChecksum: n.store.GetBackendConfiguration().Checksum,
ControllerPodsCount: n.store.GetRunningControllerPodsCount(),
}
if n.runningConfig.Equal(pcfg) {