Force reload if a secret is updated
This commit is contained in:
parent
0a96924fc5
commit
33ce78ab66
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ func (ic *GenericController) syncSecret(key string) {
|
||||||
}
|
}
|
||||||
glog.Infof("updating secret %v in the local store", key)
|
glog.Infof("updating secret %v in the local store", key)
|
||||||
ic.sslCertTracker.Update(key, cert)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue