Force reload if a secret is updated

This commit is contained in:
Manuel de Brito Fontes 2017-09-13 11:14:24 -03:00
parent 0a96924fc5
commit 33ce78ab66

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
}