File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
pkg/controllers/eventhandlers Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package eventhandlers
33import (
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
1921type 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 }
You can’t perform that action at this time.
0 commit comments