From b9070d76ccccf686cc3901d451df907103960784 Mon Sep 17 00:00:00 2001 From: Joao Morais Date: Thu, 27 Jul 2017 13:27:45 -0300 Subject: [PATCH] Fix reading secret of ssl cert --- core/pkg/ingress/controller/controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/pkg/ingress/controller/controller.go b/core/pkg/ingress/controller/controller.go index 5de2f365f..2281ba085 100644 --- a/core/pkg/ingress/controller/controller.go +++ b/core/pkg/ingress/controller/controller.go @@ -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