Merge pull request #2672 from aledbf/conf-reload

After a configmap change parse ingress annotations (again)
This commit is contained in:
k8s-ci-robot 2018-06-21 06:18:08 -07:00 committed by GitHub
commit 024f42de00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -479,6 +479,18 @@ func New(checkOCSP bool,
if key == configmap { if key == configmap {
store.setConfig(cm) store.setConfig(cm)
} }
ings := store.listers.IngressAnnotation.List()
for _, ingKey := range ings {
key := k8s.MetaNamespaceKey(ingKey)
ing, err := store.GetIngress(key)
if err != nil {
glog.Errorf("could not find Ingress %v in local store: %v", key, err)
continue
}
store.extractAnnotations(ing)
}
updateCh.In() <- Event{ updateCh.In() <- Event{
Type: ConfigurationEvent, Type: ConfigurationEvent,
Obj: cur, Obj: cur,