Fix exec of readSecrets

This commit is contained in:
Joao Morais 2017-09-27 20:53:31 -03:00
parent 75cccbbd32
commit 62e000ebf2
2 changed files with 7 additions and 6 deletions

View file

@ -238,14 +238,14 @@ func (ic GenericController) GetService(name string) (*apiv1.Service, error) {
// sync collects all the pieces required to assemble the configuration file and
// then sends the content to the backend (OnUpdate) receiving the populated
// template as response reloading the backend if is required.
func (ic *GenericController) syncIngress(key interface{}) error {
func (ic *GenericController) syncIngress(element interface{}) error {
ic.syncRateLimiter.Accept()
if ic.syncQueue.IsShuttingDown() {
return nil
}
if name, ok := key.(string); ok {
if name, ok := element.(task.Element).Key.(string); ok {
if obj, exists, _ := ic.listers.Ingress.GetByKey(name); exists {
ing := obj.(*extensions.Ingress)
ic.readSecrets(ing)