Skip to content

Commit

Permalink
fix: ingress class not effect in resource sync logic (apache#1311) (a…
Browse files Browse the repository at this point in the history
…pache#1330)

Co-authored-by: Xin Rong <1324266492@qq.com>
Co-authored-by: xiangtianyu <tjjxiang@gmail.com>
Co-authored-by: Sarasa Kisaragi <lingsamuelgrace@gmail.com>
  • Loading branch information
4 people authored Sep 14, 2022
1 parent d43fda7 commit 5a3ce7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,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 5a3ce7c

Please sign in to comment.