Skip to content

Commit

Permalink
🔨 fix: always watch endpoint if cilium nr
Browse files Browse the repository at this point in the history
  • Loading branch information
anngdinh committed Oct 15, 2024
1 parent 3e6d7f6 commit 8919362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ func (c *Controller) ensureCompareIngress(_, ing *nwv1.Ingress) (*lObjects.LoadB
return nil, err
}
c.cacheLoadBalancerBuilder[fmt.Sprintf("%s/%s", ing.Namespace, ing.Name)] = newIngExpander
c.resourceDependant.SetIngress(ing, newIngExpander.serviceConf.TargetType == TargetTypeIP)
c.resourceDependant.SetIngress(ing, newIngExpander.serviceConf.TargetType == TargetTypeIP || c.cniType == cni_detector.CiliumNativeRouting)
return lb, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/vngcloud/vlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func (c *vLB) ensureLoadBalancer(
"Load balancer %s for service %s/%s is ready to use for Kubernetes controller\n----- DONE ----- ",
lb.Name, pService.Namespace, pService.Name)

c.resourceDependant.SetService(pService, newIngExpander.serviceConf.TargetType == TargetTypeIP)
c.resourceDependant.SetService(pService, newIngExpander.serviceConf.TargetType == TargetTypeIP || c.cniType == cni_detector.CiliumNativeRouting)
return lbStatus, nil
}

Expand Down

0 comments on commit 8919362

Please sign in to comment.