Skip to content

Commit

Permalink
After a configmap change parse ingress annotations (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jun 21, 2018
1 parent fe9a5ae commit 7796761
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 7796761

Please sign in to comment.