Merge pull request #1349 from aledbf/force-reload

Force reload if a secret is updated
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-09-13 09:48:38 -07:00 committed by GitHub
commit ca0df3a271

View file

@ -52,6 +52,11 @@ func (ic *GenericController) syncSecret(key string) {
}
glog.Infof("updating secret %v in the local store", key)
ic.sslCertTracker.Update(key, cert)
// we need to force the sync of the secret to disk
ic.syncSecret(key)
// this update must trigger an update
// (like an update event from a change in Ingress)
ic.syncIngress("secret-update")
return
}