linkerd2/controller/api/destination
Kevin Leimkuhler c2301749ef
Always return destination overrides for services (#4890)
## Motivation

#4879

## Solution

When no traffic split exists for services, return a single destination override
with a weight of 100%.

Using the destination client on a new linkerd installation, this results in the
following output for `linkerd-identity` service:

```
❯ go run controller/script/destination-client/main.go -method getProfile -path linkerd-identity.linkerd.svc.cluster.local:8080
INFO[0000] retry_budget:{retry_ratio:0.2 min_retries_per_second:10 ttl:{seconds:10}} dst_overrides:{authority:"linkerd-identity.linkerd.svc.cluster.local.:8080" weight:100000} 
INFO[0000]
```

Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
2020-08-19 12:25:58 -07:00
..
watcher service topologies: topology-aware service routing (#4780) 2020-08-18 11:11:09 -07:00
client.go Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
endpoint_translator.go service topologies: topology-aware service routing (#4780) 2020-08-18 11:11:09 -07:00
endpoint_translator_test.go service topologies: topology-aware service routing (#4780) 2020-08-18 11:11:09 -07:00
fallback_profile_listener.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
fallback_profile_listener_test.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
profile_translator.go Update proxy-api version to v0.1.13 (#4614) 2020-06-24 12:52:59 -07:00
profile_translator_test.go Update proxy-api version to v0.1.13 (#4614) 2020-06-24 12:52:59 -07:00
server.go service topologies: topology-aware service routing (#4780) 2020-08-18 11:11:09 -07:00
server_test.go service topologies: topology-aware service routing (#4780) 2020-08-18 11:11:09 -07:00
traffic_split_adaptor.go Always return destination overrides for services (#4890) 2020-08-19 12:25:58 -07:00
traffic_split_adaptor_test.go Always return destination overrides for services (#4890) 2020-08-19 12:25:58 -07:00