Skip to content

Commit

Permalink
fix: ingress class not effect in resource sync logic (#1311)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarasa Kisaragi <lingsamuelgrace@gmail.com>
Co-authored-by: Xin Rong <1324266492@qq.com>
  • Loading branch information
3 people authored Sep 2, 2022
1 parent d6f1352 commit 848a78f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/providers/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,12 @@ func (c *ingressController) ResourceSync() {
continue
}
ing := kube.MustNewIngress(obj)
if !c.isIngressEffective(ing) {
return
}
log.Debugw("ingress add event arrived",
zap.Any("object", obj),
)
c.workqueue.Add(&types.Event{
Type: types.EventAdd,
Object: kube.IngressEvent{
Expand Down

0 comments on commit 848a78f

Please sign in to comment.