@@ -165,6 +165,8 @@ func (r *routeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl
165165}
166166
167167func (r * routeReconciler ) reconcile (ctx context.Context , req ctrl.Request ) error {
168+ r .log .Infow ("reconcile" , "name" , req .Name )
169+
168170 route , err := r .getRoute (ctx , req )
169171 if err != nil {
170172 return client .IgnoreNotFound (err )
@@ -191,13 +193,14 @@ func (r *routeReconciler) reconcileDelete(ctx context.Context, req ctrl.Request,
191193 k8s .RouteEventReasonReconcile , "Deleting Reconcile" )
192194
193195 if err := r .cleanupRouteResources (ctx , route ); err != nil {
194- return fmt .Errorf ("failed to cleanup GRPCRoute %v , %v : %w" , route .Name (), route .Namespace (), err )
196+ return fmt .Errorf ("failed to cleanup GRPCRoute %s , %s : %w" , route .Name (), route .Namespace (), err )
195197 }
196198
197199 if err := updateRouteListenerStatus (ctx , r .client , route ); err != nil {
198200 return err
199201 }
200202
203+ r .log .Infow ("reconciled" , "name" , req .Name )
201204 return r .finalizerManager .RemoveFinalizers (ctx , route .K8sObject (), routeTypeToFinalizer [r .routeType ])
202205}
203206
@@ -239,7 +242,7 @@ func (r *routeReconciler) cleanupRouteResources(ctx context.Context, route core.
239242
240243func (r * routeReconciler ) isRouteRelevant (ctx context.Context , route core.Route ) bool {
241244 if len (route .Spec ().ParentRefs ()) == 0 {
242- r .log .Infof ("Ignore Route which has no ParentRefs gateway %v " , route .Name ())
245+ r .log .Infof ("Ignore Route which has no ParentRefs gateway %s " , route .Name ())
243246 return false
244247 }
245248
@@ -268,16 +271,16 @@ func (r *routeReconciler) isRouteRelevant(ctx context.Context, route core.Route)
268271 }
269272
270273 if err := r .client .Get (ctx , gwClassName , gwClass ); err != nil {
271- r .log .Infof ("Ignore Route not controlled by any GatewayClass %v , %v " , route .Name (), route .Namespace ())
274+ r .log .Infof ("Ignore Route not controlled by any GatewayClass %s , %s " , route .Name (), route .Namespace ())
272275 return false
273276 }
274277
275278 if gwClass .Spec .ControllerName == config .LatticeGatewayControllerName {
276- r .log .Infof ("Found aws-vpc-lattice for Route for %v , %v " , route .Name (), route .Namespace ())
279+ r .log .Infof ("Found aws-vpc-lattice for Route for %s , %s " , route .Name (), route .Namespace ())
277280 return true
278281 }
279282
280- r .log .Infof ("Ignore non aws-vpc-lattice Route %v , %v " , route .Name (), route .Namespace ())
283+ r .log .Infof ("Ignore non aws-vpc-lattice Route %s , %s " , route .Name (), route .Namespace ())
281284 return false
282285}
283286
@@ -322,7 +325,7 @@ func (r *routeReconciler) reconcileUpsert(ctx context.Context, req ctrl.Request,
322325 k8s .RouteEventReasonReconcile , "Adding/Updating Reconcile" )
323326
324327 if err := r .finalizerManager .AddFinalizers (ctx , route .K8sObject (), routeTypeToFinalizer [r .routeType ]); err != nil {
325- r .eventRecorder .Event (route .K8sObject (), corev1 .EventTypeWarning , k8s .RouteEventReasonFailedAddFinalizer , fmt .Sprintf ("Failed add finalizer due to %v " , err ))
328+ r .eventRecorder .Event (route .K8sObject (), corev1 .EventTypeWarning , k8s .RouteEventReasonFailedAddFinalizer , fmt .Sprintf ("Failed add finalizer due to %s " , err ))
326329 }
327330
328331 backendRefIPFamiliesErr := r .validateBackendRefsIpFamilies (ctx , route )
@@ -367,6 +370,7 @@ func (r *routeReconciler) reconcileUpsert(ctx context.Context, req ctrl.Request,
367370 return err
368371 }
369372
373+ r .log .Infow ("reconciled" , "name" , req .Name )
370374 return nil
371375}
372376
0 commit comments