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 7c1a2b98df
commit 1e0894999c

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
}