Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/controllers/eventhandlers/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package eventhandlers
import (
"context"
"fmt"

anv1alpha1 "github.com/aws/aws-application-networking-k8s/pkg/apis/applicationnetworking/v1alpha1"
k8sutils "github.com/aws/aws-application-networking-k8s/pkg/k8s"
"github.com/aws/aws-application-networking-k8s/pkg/k8s/policyhelper"
Expand All @@ -14,6 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
gwv1 "sigs.k8s.io/gateway-api/apis/v1"
gwv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
)

type resourceMapper struct {
Expand Down Expand Up @@ -174,6 +176,12 @@ func (r *resourceMapper) backendRefToRoutes(ctx context.Context, obj client.Obje
for _, k8sRoute := range routeList.Items {
routes = append(routes, core.NewGRPCRoute(k8sRoute))
}
case core.TlsRouteType:
routeList := &gwv1alpha2.TLSRouteList{}
r.client.List(ctx, routeList)
for _, k8sRoute := range routeList.Items {
routes = append(routes, core.NewTLSRoute(k8sRoute))
}
default:
return nil
}
Expand Down
Loading