Skip to content

Commit

Permalink
fix: update plugins which are detected as out of sync
Browse files Browse the repository at this point in the history
This is regression introduced in 2550758.
The plugins were being detected out of sync but not actually synced to
Kong.
No tests are added currently since this is due a refactor soon.

From #138
  • Loading branch information
hbagdi authored Sep 21, 2018
1 parent f44a538 commit de9e38c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/ingress/controller/kong.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ func (n *NGINXController) syncServices(ingressCfg *ingress.Configuration) (bool,
}
p.Consumer = fmt.Sprintf("%v", consumer.GetUID())
}
pluginsToUpdate = append(pluginsToUpdate, p)
}
}
}
Expand Down Expand Up @@ -908,6 +909,7 @@ func (n *NGINXController) syncRoutes(ingressCfg *ingress.Configuration) (bool, e
}
p.Consumer = fmt.Sprintf("%v", consumer.GetUID())
}
pluginsToUpdate = append(pluginsToUpdate, p)
}
glog.Infof("plugin %v configuration in kong is up to date.", pluginInk8s.PluginName)

Expand Down

0 comments on commit de9e38c

Please sign in to comment.