Skip to content

Commit db3b89d

Browse files
committed
Fix tls route event map
1 parent 204d760 commit db3b89d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/controllers/eventhandlers/mapper.go

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package eventhandlers
33
import (
44
"context"
55
"fmt"
6+
67
anv1alpha1 "github.com/aws/aws-application-networking-k8s/pkg/apis/applicationnetworking/v1alpha1"
78
k8sutils "github.com/aws/aws-application-networking-k8s/pkg/k8s"
89
"github.com/aws/aws-application-networking-k8s/pkg/k8s/policyhelper"
@@ -14,6 +15,7 @@ import (
1415
"k8s.io/apimachinery/pkg/types"
1516
"sigs.k8s.io/controller-runtime/pkg/client"
1617
gwv1 "sigs.k8s.io/gateway-api/apis/v1"
18+
gwv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
1719
)
1820

1921
type resourceMapper struct {
@@ -174,6 +176,12 @@ func (r *resourceMapper) backendRefToRoutes(ctx context.Context, obj client.Obje
174176
for _, k8sRoute := range routeList.Items {
175177
routes = append(routes, core.NewGRPCRoute(k8sRoute))
176178
}
179+
case core.TlsRouteType:
180+
routeList := &gwv1alpha2.TLSRouteList{}
181+
r.client.List(ctx, routeList)
182+
for _, k8sRoute := range routeList.Items {
183+
routes = append(routes, core.NewTLSRoute(k8sRoute))
184+
}
177185
default:
178186
return nil
179187
}

0 commit comments

Comments
 (0)