Merge a23073dffc
into a5eac354bb
This commit is contained in:
commit
b8c51beadc
1 changed files with 6 additions and 2 deletions
|
@ -1133,10 +1133,14 @@ func (ic *GenericController) createServers(data []interface{},
|
||||||
|
|
||||||
key := fmt.Sprintf("%v/%v", ing.Namespace, tlsSecretName)
|
key := fmt.Sprintf("%v/%v", ing.Namespace, tlsSecretName)
|
||||||
bc, exists := ic.sslCertTracker.Get(key)
|
bc, exists := ic.sslCertTracker.Get(key)
|
||||||
|
if !exists {
|
||||||
|
ic.syncSecret(key)
|
||||||
|
bc, exists = ic.sslCertTracker.Get(key)
|
||||||
if !exists {
|
if !exists {
|
||||||
glog.Infof("ssl certificate \"%v\" does not exist in local store", key)
|
glog.Infof("ssl certificate \"%v\" does not exist in local store", key)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cert := bc.(*ingress.SSLCert)
|
cert := bc.(*ingress.SSLCert)
|
||||||
err = cert.Certificate.VerifyHostname(host)
|
err = cert.Certificate.VerifyHostname(host)
|
||||||
|
|
Loading…
Reference in a new issue