From 6ad1d80b3ee0f847d641a460ce73da4ccd9ce3d0 Mon Sep 17 00:00:00 2001 From: Md Raiyan Date: Sun, 24 May 2026 03:59:40 +0000 Subject: [PATCH] fix: use r.ClusterName instead of package-level clusterName in hub SliceGw log Signed-off-by: Md Raiyan --- pkg/hub/controllers/slicegateway_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hub/controllers/slicegateway_controller.go b/pkg/hub/controllers/slicegateway_controller.go index b6222d240..9221e8a7e 100644 --- a/pkg/hub/controllers/slicegateway_controller.go +++ b/pkg/hub/controllers/slicegateway_controller.go @@ -72,7 +72,7 @@ func (r *SliceGwReconciler) Reconcile(ctx context.Context, req reconcile.Request *r.EventRecorder = (*r.EventRecorder).WithSlice(sliceGw.Spec.SliceName) // Return if the slice gw resource does not belong to our cluster if sliceGw.Spec.LocalGatewayConfig.ClusterName != r.ClusterName { - log.Info("sliceGw doesn't belong to this cluster", "sliceGw", sliceGw.Name, "cluster", clusterName, "slicegw cluster", sliceGw.Spec.LocalGatewayConfig.ClusterName) + log.Info("sliceGw doesn't belong to this cluster", "sliceGw", sliceGw.Name, "cluster", r.ClusterName, "slicegw cluster", sliceGw.Spec.LocalGatewayConfig.ClusterName) return reconcile.Result{}, nil } requeue, result, err := r.handleSliceGWDeletion(sliceGw, ctx, req)