consul/internal
Nitya Dhanushkodi 92aab7ea31
[NET-5586][rebased] v2: Support virtual port references in config (#20371)
[OG Author: michael.zalimeni@hashicorp.com, rebase needed a separate PR]

* v2: support virtual port in Service port references

In addition to Service target port references, allow users to specify a
port by stringified virtual port value. This is useful in environments
such as Kubernetes where typical configuration is written in terms of
Service virtual ports rather than workload (pod) target port names.

Retaining the option of referencing target ports by name supports VMs,
Nomad, and other use cases where virtual ports are not used by default.

To support both uses cases at once, we will strictly interpret port
references based on whether the value is numeric. See updated
`ServicePort` docs for more details.

* v2: update service ref docs for virtual port support

Update proto and generated .go files with docs reflecting virtual port
reference support.

* v2: add virtual port references to L7 topo test

Add coverage for mixed virtual and target port references to existing
test.

* update failover policy controller tests to work with computed failover policy and assert error conditions against FailoverPolicy and ComputedFailoverPolicy resources

* accumulate services; don't overwrite them in enterprise

---------

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
2024-01-29 10:43:41 -08:00
..
auth move deny action to enterprise only for traffic permissions (#20313) 2024-01-24 13:01:22 -07:00
catalog [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
controller Fix panic on error (#20377) 2024-01-29 17:44:13 +00:00
dnsutil feat(v2dns): add PTR query support (#20362) 2024-01-29 11:40:10 -05:00
go-sso [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
hcp Add finalizer to link resource (#20321) 2024-01-25 12:27:36 -05:00
mesh [NET-5586][rebased] v2: Support virtual port references in config (#20371) 2024-01-29 10:43:41 -08:00
multicluster Net 7074/decentralized exported services management (#20318) 2024-01-23 19:44:10 -06:00
protohcl [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
protoutil mesh: compute more of the xRoute features into ComputedRoutes (#18980) 2023-09-22 16:13:24 -05:00
radix [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
resource Change logging of registered v2 resource endpoints to add /api prefix (#20352) 2024-01-25 14:18:54 -08:00
resourcehcl mesh: rename Upstreams and UpstreamsConfiguration to Destinations* (#18995) 2023-09-25 12:03:45 -06:00
storage Skip tests with p95 greater than 30 seconds outside of main and release branches. (#19628) 2023-11-15 13:43:33 -07:00
tenancy [OSS] feat: add experiments flag for v2 dns and skeleton interfaces (#20115) 2024-01-10 11:19:20 -05:00
testing Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
tools NET-5824 Exported services api (#20015) 2024-01-23 10:06:59 +05:30