Fix reading secret of ssl cert

This commit is contained in:
Joao Morais 2017-07-27 13:27:45 -03:00
parent ce5e3999ab
commit b9070d76cc

View file

@ -1096,6 +1096,10 @@ 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