Skip to content

Commit

Permalink
improve servers list call in routegc controller as well
Browse files Browse the repository at this point in the history
  • Loading branch information
databus23 committed Sep 10, 2021
1 parent a6ba096 commit a8b07b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/routegc/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (w *routeGarbageCollector) Reconcile(kluster *v1.Kluster) (err error) {
}

validNexthops := map[string]string{}
err = foreachServer(computeClient, servers.ListOpts{}, func(srv *servers.Server) (bool, error) {
err = foreachServer(computeClient, servers.ListOpts{Name: "^(kks-)?" + kluster.Spec.Name}, func(srv *servers.Server) (bool, error) {
for _, addrs := range srv.Addresses {
for _, nase := range addrs.([]interface{}) {
addresses, ok := nase.(map[string]interface{})
Expand Down

0 comments on commit a8b07b5

Please sign in to comment.