linkerd2/pkg
Alex Leong dac5adc767
Improve error handling in alpha stat command (#4141)
More helpful error messages when the `linkerd alpha stat` command fails.  For example, when the user is not authorized:

```
> linkerd alpha stat deploy/web -n emojivoto --as obama@buoyant.io
Error: deployments.metrics.smi-spec.io "web" is forbidden: User "obama@buoyant.io" cannot get resource "deployments" in API group "metrics.smi-spec.io" in the namespace "emojivoto"
```

When an error is encountered on the server:

```
> linkerd alpha stat deploy -n emojivoto
Error: Unauthorized client certificate. Check configuration and try again.
```

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-03-06 11:47:05 -08:00
..
addr Add JSON output to tap command (#3434) 2019-09-19 09:34:49 -07:00
admin Add profiling endpoint for all control-plane components (#2739) 2019-04-24 09:59:38 -07:00
charts Service Mirroring Component (#4028) 2020-03-02 21:16:08 +02:00
config Web server updated to read the UUID from the linkerd-config ConfigMap. (#2603) 2019-04-08 12:56:00 -07:00
filesonly Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
flags Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
healthcheck Remove envoy, contour restrictions (#4092) 2020-03-02 09:18:51 -05:00
identity Update identity to make certs more diagnosable (#3990) 2020-02-13 11:21:41 +02:00
inject Refactor https://github.com/linkerd/linkerd2/pull/3909 (#3933) 2020-01-21 09:48:08 -08:00
issuercerts Unify trust anchors terminology (#4047) 2020-02-15 10:12:46 +02:00
k8s Add linkerd alpha stat command (#4130) 2020-03-05 15:23:14 -08:00
profiles Support for configuring service profile retries(x-linkerd-retryable) via openapi spec (#4052) 2020-02-18 13:07:07 -08:00
prometheus Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
protohttp More succinct HTTPError messages (#3221) 2019-08-08 17:39:36 -07:00
smimetrics Improve error handling in alpha stat command (#4141) 2020-03-06 11:47:05 -08:00
tap Cleanup: fix some typos in code comment (#3296) 2019-08-21 09:40:43 -07:00
tls Update identity to make certs more diagnosable (#3990) 2020-02-13 11:21:41 +02:00
trace Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
util Revert "Trace Control Plane components using OC (#3461)" (#3484) 2019-09-26 11:56:44 -07:00
version Changes for edge-20.1.3 (#3966) 2020-01-23 16:55:21 -08:00