Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurma committed Dec 5, 2023
1 parent aeaacc3 commit c11d7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ingress/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,13 +942,13 @@ func configureBackends(rawBackends []*ingress.Backend) error {

// if there are no any active endpoints in local cluster then find cluster-mesh endpoints here
if len(endpoints) == 0 && os.Getenv("CILIUM_MODE") == "true" && c_cli != nil {
CiliumGlobalServices, err := c_cli.GetServices()
ciliumGlobalServices, err := c_cli.GetServices()
if err != nil {
klog.Warningf("[Sintral9127491] Error list cilium service: %v", err)
} else {
// TODO better way to filter via cluster IP
// currenrtly O(n) search, due to the sdk doesn't support get via clusterIP
for _, ciliumService := range CiliumGlobalServices {
for _, ciliumService := range ciliumGlobalServices {
if ciliumService.Status.Realized.FrontendAddress.IP == service.Spec.ClusterIP {
for _, ciliumEndpoint := range ciliumService.Status.Realized.BackendAddresses {
endpoints = append(endpoints, ingress.Endpoint{
Expand Down

0 comments on commit c11d7b3

Please sign in to comment.