From 0951b973c9bc1f8360e7765ab34ff3264abecced Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Sat, 23 Jun 2018 09:08:48 -0400 Subject: [PATCH] Fix initial read of configuration configmap (#2692) --- internal/ingress/controller/store/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ingress/controller/store/store.go b/internal/ingress/controller/store/store.go index 6452c1bbc..c3f93784d 100644 --- a/internal/ingress/controller/store/store.go +++ b/internal/ingress/controller/store/store.go @@ -507,7 +507,8 @@ func New(checkOCSP bool, store.informers.Service.AddEventHandler(cache.ResourceEventHandlerFuncs{}) // do not wait for informers to read the configmap configuration - cm, err := client.CoreV1().ConfigMaps(namespace).Get(configmap, metav1.GetOptions{}) + ns, name, _ := k8s.ParseNameNS(configmap) + cm, err := client.CoreV1().ConfigMaps(ns).Get(name, metav1.GetOptions{}) if err != nil { glog.Warningf("Unexpected error reading configuration configmap: %v", err) }