Skip to content

Commit

Permalink
Ensure ingress cleanup when finalizer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
skmatti committed Jun 9, 2020
1 parent 1b62572 commit ca397c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ func NewLoadBalancerController(
lbc.ingQueue.Enqueue(cur)
return
}
// Ingress needs to be enqueued if a ingress finalizer exists.
// Note that the GC workflow invoked for this ingress.
if common.HasFinalizer(curIng.ObjectMeta) {
klog.V(4).Infof("Ingress %v has a finalizer, enqueuing", common.NamespacedName(curIng))
lbc.ingQueue.Enqueue(cur)
return
}
return
}
if reflect.DeepEqual(old, cur) {
Expand Down

0 comments on commit ca397c7

Please sign in to comment.