Skip to content

Commit

Permalink
Force reload if a secret is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Sep 13, 2017
1 parent 0a96924 commit 33ce78a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/pkg/ingress/controller/backend_ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func (ic *GenericController) syncSecret(key string) {
}
glog.Infof("updating secret %v in the local store", key)
ic.sslCertTracker.Update(key, cert)
// we need to force the sync of the secret to disk
ic.syncSecret(key)
// this update must trigger an update
// (like an update event from a change in Ingress)
ic.syncIngress("secret-update")
return
}

Expand Down

0 comments on commit 33ce78a

Please sign in to comment.