From a23073dffc209d46be88edfe80dcdd92793499cf Mon Sep 17 00:00:00 2001 From: Ian Quick Date: Sat, 19 Aug 2017 16:32:53 -0400 Subject: [PATCH] sync the secret if the certificate isn't present --- core/pkg/ingress/controller/controller.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/pkg/ingress/controller/controller.go b/core/pkg/ingress/controller/controller.go index 0df14d35c..ccd8f47a0 100644 --- a/core/pkg/ingress/controller/controller.go +++ b/core/pkg/ingress/controller/controller.go @@ -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)