consul/proto-public/pbmesh/v2beta1
Nathan Coleman 21b3c18d5d
Use a full EndpointRef on ComputedRoutes targets instead of just the ID (#20400)
* Use a full EndpointRef on ComputedRoutes targets instead of just the ID

Today, the `ComputedRoutes` targets have the appropriate ID set for their `ServiceEndpoints` reference; however, the `MeshPort` and `RoutePort` are assumed to be that of the target when adding the endpoints reference in the sidecar's `ProxyStateTemplate`.

This is problematic when the target lives behind a `MeshGateway` and the `Mesh/RoutePort` used in the sidecar's `ProxyStateTemplate` should be that of the `MeshGateway` instead of the target.

Instead of assuming the `MeshPort` and `RoutePort` when building the `ProxyStateTemplate` for the sidecar, let's just add the full `EndpointRef` -- including the ID and the ports -- when hydrating the computed destinations.

* Make sure the UID from the existing ServiceEndpoints makes it onto ComputedRoutes

* Update test assertions

* Undo confusing whitespace change

* Remove one-line function wrapper

* Use plural name for endpoints ref

* Add constants for gateway name, kind and port names
2024-01-30 16:25:44 -05:00
..
pbproxystate [Net-5594][Net-7466] v2: Only route to endpoints that implement the port being routed to, and make xdscontroller and xdsv2 golden tests use tenancy (#20356) 2024-01-26 10:07:21 -08:00
api_gateway.pb.binary.go NET-7153 Proto messages for API Gateway (#20250) 2024-01-24 12:10:20 -06:00
api_gateway.pb.go NET-7153 Proto messages for API Gateway (#20250) 2024-01-24 12:10:20 -06:00
api_gateway.proto NET-7153 Proto messages for API Gateway (#20250) 2024-01-24 12:10:20 -06:00
api_gateway_deepcopy.gen.go NET-7153 Proto messages for API Gateway (#20250) 2024-01-24 12:10:20 -06:00
api_gateway_json.gen.go NET-7153 Proto messages for API Gateway (#20250) 2024-01-24 12:10:20 -06:00
common.pb.binary.go
common.pb.go [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
common.proto [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
common_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
common_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
computed_explicit_destinations.pb.binary.go mesh: add computed destinations with a controller that computes them (#19067) 2023-10-12 12:04:12 -06:00
computed_explicit_destinations.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
computed_explicit_destinations.proto mesh: add computed destinations with a controller that computes them (#19067) 2023-10-12 12:04:12 -06:00
computed_explicit_destinations_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
computed_explicit_destinations_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
computed_proxy_configuration.pb.binary.go mesh: Add ComputedProxyConfiguration and a controller that computes it. (#19043) 2023-10-10 17:34:53 -06:00
computed_proxy_configuration.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
computed_proxy_configuration.proto mesh: Add ComputedProxyConfiguration and a controller that computes it. (#19043) 2023-10-10 17:34:53 -06:00
computed_proxy_configuration_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
computed_proxy_configuration_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
computed_routes.pb.binary.go
computed_routes.pb.go Use a full EndpointRef on ComputedRoutes targets instead of just the ID (#20400) 2024-01-30 16:25:44 -05:00
computed_routes.proto Use a full EndpointRef on ComputedRoutes targets instead of just the ID (#20400) 2024-01-30 16:25:44 -05:00
computed_routes_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
computed_routes_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
connection.pb.binary.go
connection.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
connection.proto NET-5073 - ProxyConfiguration: implement various connection options (#19187) 2023-10-14 13:54:08 +00:00
connection_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
connection_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
destination_policy.pb.binary.go
destination_policy.pb.go [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
destination_policy.proto [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
destination_policy_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
destination_policy_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
destinations.pb.binary.go mesh: rename Upstreams and UpstreamsConfiguration to Destinations* (#18995) 2023-09-25 12:03:45 -06:00
destinations.pb.go [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
destinations.proto [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
destinations_configuration.pb.binary.go mesh: rename Upstreams and UpstreamsConfiguration to Destinations* (#18995) 2023-09-25 12:03:45 -06:00
destinations_configuration.pb.go [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
destinations_configuration.proto [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
destinations_configuration_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
destinations_configuration_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
destinations_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
destinations_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
expose.pb.binary.go
expose.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
expose.proto Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
expose_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
expose_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
gateway_class.pb.binary.go Adds proto for the GatewayClass based on the GAMMA Kubernetes Sig (#19615) 2023-11-14 16:18:20 -05:00
gateway_class.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
gateway_class.proto Updates GatewayClass protobuf to set optional fields to optional (#19648) 2023-11-15 15:44:53 +00:00
gateway_class_deepcopy.gen.go Adds proto for the GatewayClass based on the GAMMA Kubernetes Sig (#19615) 2023-11-14 16:18:20 -05:00
gateway_class_json.gen.go Adds proto for the GatewayClass based on the GAMMA Kubernetes Sig (#19615) 2023-11-14 16:18:20 -05:00
gatewayclassconfig.pb.binary.go Add Kubebuilder tags to Gatewayclassconfig proto messages (#19725) 2023-11-28 14:46:11 -06:00
gatewayclassconfig.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
gatewayclassconfig.proto [V2] Move resource field on gateway class config from repeated map to single map (#19773) 2023-11-29 18:12:42 +00:00
gatewayclassconfig_deepcopy.gen.go Add Kubebuilder tags to Gatewayclassconfig proto messages (#19725) 2023-11-28 14:46:11 -06:00
gatewayclassconfig_json.gen.go Add Kubebuilder tags to Gatewayclassconfig proto messages (#19725) 2023-11-28 14:46:11 -06:00
grpc_route.pb.binary.go
grpc_route.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
grpc_route.proto Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
grpc_route_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
grpc_route_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
http_route.pb.binary.go
http_route.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
http_route.proto Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
http_route_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
http_route_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
http_route_retries.pb.binary.go
http_route_retries.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
http_route_retries.proto
http_route_retries_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
http_route_retries_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
http_route_timeouts.pb.binary.go
http_route_timeouts.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
http_route_timeouts.proto Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
http_route_timeouts_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
http_route_timeouts_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
mesh_configuration.pb.binary.go Add stub for MeshConfiguration proto (#19642) 2023-11-16 13:03:14 -05:00
mesh_configuration.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
mesh_configuration.proto Add stub for MeshConfiguration proto (#19642) 2023-11-16 13:03:14 -05:00
mesh_configuration_deepcopy.gen.go Add stub for MeshConfiguration proto (#19642) 2023-11-16 13:03:14 -05:00
mesh_configuration_json.gen.go Add stub for MeshConfiguration proto (#19642) 2023-11-16 13:03:14 -05:00
mesh_gateway.pb.binary.go Add listeners to meshgateway spec (#20082) 2024-01-04 18:42:32 +00:00
mesh_gateway.pb.go NET-7178: add workload selector to MeshGateway protobuf definition (#20159) 2024-01-16 21:48:18 +00:00
mesh_gateway.proto NET-7178: add workload selector to MeshGateway protobuf definition (#20159) 2024-01-16 21:48:18 +00:00
mesh_gateway_deepcopy.gen.go Add listeners to meshgateway spec (#20082) 2024-01-04 18:42:32 +00:00
mesh_gateway_json.gen.go Add listeners to meshgateway spec (#20082) 2024-01-04 18:42:32 +00:00
proxy_configuration.pb.binary.go
proxy_configuration.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
proxy_configuration.proto mesh: add validation hook to proxy configuration (#19186) 2023-10-13 15:21:39 -06:00
proxy_configuration_addon.go license: MPL'ify proto-public (#20143) 2024-01-10 11:05:12 -06:00
proxy_configuration_addon_test.go license: MPL'ify proto-public (#20143) 2024-01-10 11:05:12 -06:00
proxy_configuration_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
proxy_configuration_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
proxy_state.pb.binary.go
proxy_state.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
proxy_state.proto Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
proxy_state_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
proxy_state_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
resources.rtypes.go NET-7153 Proto messages for API Gateway (#20250) 2024-01-24 12:10:20 -06:00
routing.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
routing.proto mesh: add validation hook to proxy configuration (#19186) 2023-10-13 15:21:39 -06:00
tcp_route.pb.binary.go
tcp_route.pb.go [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
tcp_route.proto Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
tcp_route_deepcopy.gen.go Clone proto into deepcopy correctly (#19204) 2023-10-13 16:41:22 -04:00
tcp_route_json.gen.go Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015) 2023-10-13 14:55:58 +00:00
xroute_addons.go license: MPL'ify proto-public (#20143) 2024-01-10 11:05:12 -06:00
xroute_addons_test.go Remove V2 PeerName field from pbresource.Tenancy (#19865) 2024-01-29 15:08:31 -05:00