mirror of https://github.com/hashicorp/consul
07f54fe3b8
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. |
||
---|---|---|
.. | ||
demo | ||
http | ||
mappers/bimapper | ||
reaper | ||
resourcetest | ||
testdata | ||
authz_ce.go | ||
decode.go | ||
decode_test.go | ||
equality.go | ||
equality_test.go | ||
errors.go | ||
errors_test.go | ||
reference.go | ||
refkey.go | ||
refkey_test.go | ||
registry.go | ||
registry_test.go | ||
stringer.go | ||
tenancy.go | ||
tenancy_test.go | ||
tombstone.go |