Skip to content

Commit

Permalink
patch kubernetes#1205 applied
Browse files Browse the repository at this point in the history
  • Loading branch information
stibi committed Sep 15, 2017
1 parent 8793f9f commit c938d52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,14 @@ func (ic GenericController) Start() {
runtime.HandleError(fmt.Errorf("Timed out waiting for caches to sync"))
}

// initial sync of secrets to avoid unnecessary reloads
for _, key := range ic.ingLister.ListKeys() {
if obj, exists, _ := ic.ingLister.GetByKey(key); exists {
ing := obj.(*extensions.Ingress)
ic.readSecrets(ing)
}
}

go ic.syncQueue.Run(10*time.Second, ic.stopCh)

if ic.syncStatus != nil {
Expand Down

0 comments on commit c938d52

Please sign in to comment.