@@ -39,6 +39,10 @@ type WeightedTarget struct {
3939 // +kubebuilder:validation:Minimum=0
4040 // +kubebuilder:validation:Maximum=100
4141 Weight int64 `json:"weight"`
42+ // Specifies the targeted port of the weighted object
43+ // +kubebuilder:validation:Minimum=0
44+ // +optional
45+ Port * int64 `json:"port,omitempty"`
4246}
4347
4448// HTTPRouteHeader refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_HttpRouteHeader.html
@@ -81,6 +85,10 @@ type HTTPRouteMatch struct {
8185 // +kubebuilder:validation:MaxItems=10
8286 // +optional
8387 QueryParameters []HTTPQueryParameters `json:"queryParameters,omitempty"`
88+ // Specifies the port to match requests with
89+ // +kubebuilder:validation:Minimum=0
90+ // +optional
91+ Port * int64 `json:"port,omitempty"`
8492}
8593
8694// HTTPRouteAction refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_HttpRouteAction.html
@@ -141,13 +149,23 @@ type TCPRouteAction struct {
141149
142150// TCPRoute refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_TcpRoute.html
143151type TCPRoute struct {
152+ // An object that represents the criteria for determining a request match.
153+ Match TCPRouteMatch `json:"match"`
144154 // The action to take if a match is determined.
145155 Action TCPRouteAction `json:"action"`
146156 // An object that represents a tcp timeout.
147157 // +optional
148158 Timeout * TCPTimeout `json:"timeout,omitempty"`
149159}
150160
161+ // TCPRouteMatch refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_TcpRouteMatch.html
162+ type TCPRouteMatch struct {
163+ // Specifies the port to match requests with
164+ // +kubebuilder:validation:Minimum=0
165+ // +optional
166+ Port * int64 `json:"port,omitempty"`
167+ }
168+
151169// GRPCRouteMetadata refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_GrpcRouteMetadata.html
152170type GRPCRouteMetadata struct {
153171 // The name of the route.
@@ -177,6 +195,10 @@ type GRPCRouteMatch struct {
177195 // +kubebuilder:validation:MaxItems=10
178196 // +optional
179197 Metadata []GRPCRouteMetadata `json:"metadata,omitempty"`
198+ // Specifies the port to match requests with
199+ // +kubebuilder:validation:Minimum=0
200+ // +optional
201+ Port * int64 `json:"port,omitempty"`
180202}
181203
182204// GRPCRouteAction refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_GrpcRouteAction.html
@@ -277,7 +299,6 @@ type VirtualRouterSpec struct {
277299 AWSName * string `json:"awsName,omitempty"`
278300 // The listeners that the virtual router is expected to receive inbound traffic from
279301 // +kubebuilder:validation:MinItems=1
280- // +kubebuilder:validation:MaxItems=1
281302 Listeners []VirtualRouterListener `json:"listeners,omitempty"`
282303
283304 // The routes associated with VirtualRouter
0 commit comments