Skip to content

Commit

Permalink
Merge pull request #2672 from aledbf/conf-reload
Browse files Browse the repository at this point in the history
After a configmap change parse ingress annotations (again)
  • Loading branch information
k8s-ci-robot authored Jun 21, 2018
2 parents fe9a5ae + 7796761 commit 024f42d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/ingress/controller/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,18 @@ func New(checkOCSP bool,
if key == configmap {
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{
Type: ConfigurationEvent,
Obj: cur,
Expand Down

0 comments on commit 024f42d

Please sign in to comment.