sync the secret if the certificate isn't present

This commit is contained in:
Ian Quick 2017-08-19 16:32:53 -04:00
parent 3549437af4
commit a23073dffc

View file

@ -1109,10 +1109,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)