Fix initial read of configuration configmap (#2692)
This commit is contained in:
parent
03b22e605e
commit
0951b973c9
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue