diff --git a/internal/provider/kubernetes/predicates.go b/internal/provider/kubernetes/predicates.go index 9629f9d7e9a..82f7d898168 100644 --- a/internal/provider/kubernetes/predicates.go +++ b/internal/provider/kubernetes/predicates.go @@ -125,6 +125,7 @@ func (r *gatewayAPIReconciler) validateSecretForReconcile(obj client.Object) boo } for _, gw := range gwList.Items { + gw := gw if !r.validateGatewayForReconcile(&gw) { return false }