From be6df9ae168ed8edbfa4cb4a555384767c5bb6fc Mon Sep 17 00:00:00 2001 From: Huabing Zhao Date: Wed, 11 Dec 2024 03:03:58 +0000 Subject: [PATCH] fix lint Signed-off-by: Huabing Zhao --- internal/provider/kubernetes/predicates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/kubernetes/predicates.go b/internal/provider/kubernetes/predicates.go index ae457b3920b..16bb9361b04 100644 --- a/internal/provider/kubernetes/predicates.go +++ b/internal/provider/kubernetes/predicates.go @@ -645,7 +645,7 @@ func (r *gatewayAPIReconciler) updateStatusForGatewaysUnderGatewayClass(ctx cont // updateGatewayStatus triggers a status update for the Gateway. func (r *gatewayAPIReconciler) updateGatewayStatus(gateway *gwapiv1.Gateway) { gwName := utils.NamespacedName(gateway) - status:= &gateway.Status + status := &gateway.Status // Use the existing status if it exists to avoid losing the status calculated by the Gateway API translator. if existing, ok := r.resources.GatewayStatuses.Load(gwName); ok { status = existing