This commit is contained in:
Ian Quick 2017-08-21 19:38:48 +00:00 committed by GitHub
commit b8c51beadc

View file

@ -1133,10 +1133,14 @@ func (ic *GenericController) createServers(data []interface{},
key := fmt.Sprintf("%v/%v", ing.Namespace, tlsSecretName)
bc, exists := ic.sslCertTracker.Get(key)
if !exists {
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)
err = cert.Certificate.VerifyHostname(host)