@@ -114,21 +114,6 @@ func RegisterAllRouteControllers(
114114 }
115115
116116 for _ , routeInfo := range routeInfos {
117- gv := routeInfo .gatewayApiType .GetObjectKind ().GroupVersionKind ().GroupVersion ().String ()
118- kind := routeInfo .gatewayApiType .GetObjectKind ().GroupVersionKind ().Kind
119- log .Infof (context .TODO (), "GVK: %s, %s" , gv , kind )
120- if ok , err := k8s .IsGVKSupported (mgr , gv , kind ); ! ok {
121- log .Infof (context .TODO (), "GVK not supported gv: %s, kind: %s" , gv , kind )
122- if err != nil {
123- log .Infof (context .TODO (), "GVK not supported error: %s" , err )
124- return nil
125- }
126- } else {
127- log .Infof (context .TODO (), "GVK supported gv: %s, kind: %s" , gv , kind )
128- if err != nil {
129- return err
130- }
131- }
132117 brTgBuilder := gateway .NewBackendRefTargetGroupBuilder (log , mgrClient )
133118 reconciler := routeReconciler {
134119 routeType : routeInfo .routeType ,
@@ -200,8 +185,6 @@ func (r *routeReconciler) reconcile(ctx context.Context, req ctrl.Request) error
200185 if err != nil {
201186 return client .IgnoreNotFound (err )
202187 }
203- r .log .Debugw (ctx , "u-kai reconcile after getRoute" , "route" , route )
204-
205188 if err = r .client .Get (ctx , req .NamespacedName , route .K8sObject ()); err != nil {
206189 return client .IgnoreNotFound (err )
207190 }
@@ -293,8 +276,7 @@ func (r *routeReconciler) isRouteRelevant(ctx context.Context, route core.Route)
293276 // make sure gateway is an aws-vpc-lattice
294277 gwClass := & gwv1.GatewayClass {}
295278 gwClassName := types.NamespacedName {
296- Namespace : defaultNamespace ,
297- Name : string (gw .Spec .GatewayClassName ),
279+ Name : string (gw .Spec .GatewayClassName ),
298280 }
299281
300282 if err := r .client .Get (ctx , gwClassName , gwClass ); err != nil {
0 commit comments