consul/internal/resource
R.B. Boyer 07f54fe3b8
resource: add helper to normalize inner Reference tenancy during mutate (#18765)
When one resource contains an inner field that is of type *pbresource.Reference we want the
Tenancy to be reasonably defaulted by the following rules:

1. The final values will be limited by the scope of the referenced type.
2. Values will be inferred from the parent's tenancy, and if that is insufficient then using
   the default tenancy for the type's scope.
3. Namespace will only be used from a parent if the reference and the parent share a
   partition, otherwise the default namespace will be used.

Until we tackle peering, this hard codes an assumption of peer name being local. The
logic for defaulting may need adjustment when that is addressed.
2023-09-13 12:08:12 -05:00
..
demo resource: Require scope for resource registration (#18635) 2023-09-01 09:44:53 -05:00
http fix: write endpoint errors out gracefully (#18743) 2023-09-12 09:22:15 -04:00
mappers/bimapper xds controller: setup watches for and compute leaf cert references in ProxyStateTemplate, and wire up leaf cert manager dependency (#18756) 2023-09-12 12:56:43 -07:00
reaper [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
resourcetest sidecar-proxy controller: L4 controller with explicit upstreams (NET-3988) (#18352) 2023-09-07 09:37:15 -06:00
testdata Add type validations for the catalog resources (#17211) 2023-05-12 09:24:55 -04:00
authz_ce.go OSS -> CE (community edition) changes (#18517) 2023-08-22 09:46:03 -05:00
decode.go mesh: adding type aliases for mesh resource usage (#18448) 2023-08-22 12:31:06 -05:00
decode_test.go resource: Require scope for resource registration (#18635) 2023-09-01 09:44:53 -05:00
equality.go bimapper: allow to untrack links and support reference or id (#18451) 2023-08-17 18:03:05 -06:00
equality_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
errors.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
errors_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
reference.go sidecar-proxy controller: L4 controller with explicit upstreams (NET-3988) (#18352) 2023-09-07 09:37:15 -06:00
refkey.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
refkey_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
registry.go resource: Require scope for resource registration (#18635) 2023-09-01 09:44:53 -05:00
registry_test.go resource: Require scope for resource registration (#18635) 2023-09-01 09:44:53 -05:00
stringer.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
tenancy.go resource: add helper to normalize inner Reference tenancy during mutate (#18765) 2023-09-13 12:08:12 -05:00
tenancy_test.go resource: add helper to normalize inner Reference tenancy during mutate (#18765) 2023-09-13 12:08:12 -05:00
tombstone.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00