Skip to content

Commit

Permalink
Update internal/provider/kubernetes/predicates.go
Browse files Browse the repository at this point in the history
Co-authored-by: Karol Szwaj <karol.szwaj@gmail.com>
Signed-off-by: Xunzhuo <mixdeers@gmail.com>
  • Loading branch information
Xunzhuo and cnvergence authored Dec 13, 2023
1 parent ad8d6c9 commit 37e4734
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/provider/kubernetes/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,12 @@ func (r *gatewayAPIReconciler) validateDeploymentForReconcile(obj client.Object)
if !ok {
return false
}
for _, gtw := range res.Gateways {
gtw := gtw
r.statusUpdateForGateway(ctx, gtw)
if res != nil && len(res.Gateways) > 0 {
for _, gw := range res.Gateways {
gw := gw
r.statusUpdateForGateway(ctx, gw)
}
}
}
return false
}
Expand Down

0 comments on commit 37e4734

Please sign in to comment.