sync the secret if the certificate isn't present
This commit is contained in:
parent
3549437af4
commit
a23073dffc
1 changed files with 6 additions and 2 deletions
|
@ -1110,8 +1110,12 @@ func (ic *GenericController) createServers(data []interface{},
|
|||
key := fmt.Sprintf("%v/%v", ing.Namespace, tlsSecretName)
|
||||
bc, exists := ic.sslCertTracker.Get(key)
|
||||
if !exists {
|
||||
glog.Infof("ssl certificate \"%v\" does not exist in local store", key)
|
||||
continue
|
||||
ic.syncSecret(key)
|
||||
bc, exists = ic.sslCertTracker.Get(key)
|
||||
if !exists {
|
||||
glog.Infof("ssl certificate \"%v\" does not exist in local store", key)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
cert := bc.(*ingress.SSLCert)
|
||||
|
|
Loading…
Reference in a new issue