Skip to content

Commit

Permalink
Fixed reconcile not running on all KIngress after ksvc deletion (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryutoyasugi authored Dec 5, 2023
1 parent c3b4a15 commit aa078b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reconciler/ingress/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl

r.resyncConflicts = func() {
impl.FilteredGlobalResync(func(obj interface{}) bool {
lbReady := obj.(*v1alpha1.Ingress).Status.GetCondition(v1alpha1.IngressConditionLoadBalancerReady).GetReason()
lbReady := obj.(*v1alpha1.Ingress).Status.GetCondition(v1alpha1.IngressConditionLoadBalancerReady)
// Force reconcile all Kourier ingresses that are either not reconciled yet
// (and thus might end up in a conflict) or already in conflict.
return isKourierIngress(obj) && (lbReady == "" || lbReady == conflictReason)
return isKourierIngress(obj) && (lbReady == nil || lbReady.GetReason() == conflictReason)
}, ingressInformer.Informer())
}

Expand Down

0 comments on commit aa078b9

Please sign in to comment.