consul/command/connect/envoy
Jared Kirschner b9c9d79778
Accept ap, datacenter, and namespace query params (#17525)
This commit only contains the OSS PR (datacenter query param support).
A separate enterprise PR adds support for ap and namespace query params.

Resources in Consul can exists within scopes such as datacenters, cluster
peers, admin partitions, and namespaces. You can refer to those resources from
interfaces such as the CLI, HTTP API, DNS, and configuration files.

Some scope levels have consistent naming: cluster peers are always referred to
as "peer".

Other scope levels use a short-hand in DNS lookups...
- "ns" for namespace
- "ap" for admin partition
- "dc" for datacenter

...But use long-hand in CLI commands:
- "namespace" for namespace
- "partition" for admin partition
- and "datacenter"

However, HTTP API query parameters do not follow a consistent pattern,
supporting short-hand for some scopes but long-hand for others:
- "ns" for namespace
- "partition" for admin partition
- and "dc" for datacenter.

This inconsistency is confusing, especially for users who have been exposed to
providing scope names through another interface such as CLI or DNS queries.

This commit improves UX by consistently supporting both short-hand and
long-hand forms of the namespace, partition, and datacenter scopes in HTTP API
query parameters.
2023-05-31 11:50:24 -04:00
..
pipe-bootstrap Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
testdata Rename hcp-metrics-collector to consul-telemetry-collector (#17327) 2023-05-16 14:36:05 -04:00
bootstrap_config.go Rename hcp-metrics-collector to consul-telemetry-collector (#17327) 2023-05-16 14:36:05 -04:00
bootstrap_config_test.go Rename hcp-metrics-collector to consul-telemetry-collector (#17327) 2023-05-16 14:36:05 -04:00
bootstrap_tpl.go fix(connect envoy): set initial_fetch_timeout to wait for initial xDS… (#17317) 2023-05-15 10:45:16 -04:00
envoy.go Revert "[CC-4519] Include Consul NodeID in Envoy bootstrap metadata" (#17191) 2023-04-28 15:23:55 -06:00
envoy_oss_test.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
envoy_test.go Accept ap, datacenter, and namespace query params (#17525) 2023-05-31 11:50:24 -04:00
exec.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec_test.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec_unix.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec_unsupported.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
flags.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
flags_test.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00