From 848a78f494cf42b42858e1a42a3b89f1f2ae158b Mon Sep 17 00:00:00 2001 From: xiangtianyu Date: Fri, 2 Sep 2022 18:54:51 +0800 Subject: [PATCH] fix: ingress class not effect in resource sync logic (#1311) Co-authored-by: Sarasa Kisaragi Co-authored-by: Xin Rong <1324266492@qq.com> --- pkg/providers/ingress/ingress.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/providers/ingress/ingress.go b/pkg/providers/ingress/ingress.go index 689dd0b416..50381fb161 100644 --- a/pkg/providers/ingress/ingress.go +++ b/pkg/providers/ingress/ingress.go @@ -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{