Fix initial read of configuration configmap (#2692)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-06-23 09:08:48 -04:00 committed by GitHub
parent 03b22e605e
commit 0951b973c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}