Skip to content

Commit de9e38c

Browse files
authored
fix: update plugins which are detected as out of sync
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
1 parent f44a538 commit de9e38c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/ingress/controller/kong.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ func (n *NGINXController) syncServices(ingressCfg *ingress.Configuration) (bool,
497497
}
498498
p.Consumer = fmt.Sprintf("%v", consumer.GetUID())
499499
}
500+
pluginsToUpdate = append(pluginsToUpdate, p)
500501
}
501502
}
502503
}
@@ -908,6 +909,7 @@ func (n *NGINXController) syncRoutes(ingressCfg *ingress.Configuration) (bool, e
908909
}
909910
p.Consumer = fmt.Sprintf("%v", consumer.GetUID())
910911
}
912+
pluginsToUpdate = append(pluginsToUpdate, p)
911913
}
912914
glog.Infof("plugin %v configuration in kong is up to date.", pluginInk8s.PluginName)
913915

0 commit comments

Comments
 (0)