linkerd2/pkg
Alejandro Pedraza a04b30d2ab
Simplify SelfCheck API (#5665)
Fixes #5575

Now that only viz makes use of the `SelfCheck` api, merged the `healthcheck.proto` into `viz.proto`.

Also removed the "checkRPC" functionality that was used for handling multiple API responses and was only used by `SelfCheck`, because the extra complexity was not granted. Revert to use the plain vanilla "check" by just concatenating error responses.

## Success Output

```bash
$ bin/linkerd viz check
...
linkerd-viz
-----------
...
√ viz extension self-check
```

## Failure Examples

Failure when viz fails to connect to the k8s api:
```bash
$ bin/linkerd viz check
...
linkerd-viz
-----------
...
× viz extension self-check
    Error calling the Kubernetes API: someerror
    see https://linkerd.io/checks/#l5d-api-control-api for hints

Status check results are ×
```

Failure when viz fails to connect to Prometheus:
```bash
$ bin/linkerd viz check
...
linkerd-viz
-----------
...
× viz extension self-check
    Error calling Prometheus from the control plane: someerror
    see https://linkerd.io/checks/#l5d-api-control-api for hints

Status check results are ×
```

Failure when viz fails to connect to both the k8s api and Prometheus:
```bash
$ bin/linkerd viz check
...
linkerd-viz
-----------
...
× viz extension self-check
    Error calling the Kubernetes API: someerror
    Error calling Prometheus from the control plane: someerror
    see https://linkerd.io/checks/#l5d-api-control-api for hints

Status check results are ×
```
2021-02-05 10:13:45 -05:00
..
addr Extract from public-api all the Prometheus dependencies, and moves things into a new viz component 'linkerd-metrics-api' (#5560) 2021-01-21 18:26:38 -05:00
admin remove admin server timeouts (#4350) 2020-05-08 12:59:43 -07:00
charts Add unit test for pkg/charts/charts.go (#5565) 2021-01-20 09:55:01 -05:00
cmd viz: move sub-cmds using viz extension under viz cmd (#5485) 2021-01-13 12:11:25 +05:30
config Add linkerd repair command (#5636) 2021-02-04 16:47:04 -08:00
filesonly Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
flags Add log-format flag to control plane components (#5537) 2021-01-15 10:51:32 -05:00
healthcheck Simplify SelfCheck API (#5665) 2021-02-05 10:13:45 -05:00
identity cli: Don't check for SAN in root and intermediate certs (#5237) 2020-11-18 15:30:39 -08:00
inject viz: add data-plane and prometheus healthchecks (#5602) 2021-02-01 23:01:13 +05:30
issuercerts cli: Don't check for SAN in root and intermediate certs (#5237) 2020-11-18 15:30:39 -08:00
k8s Introduce V1 to CRDs and Mutating Hooks (#5603) 2021-02-01 09:18:13 -05:00
multicluster Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
profiles viz: add viz profile command (#5621) 2021-02-01 19:02:46 -05:00
prometheus Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
protohttp Separate observability API (#5510) 2021-01-13 14:34:54 -05:00
public Extract from public-api all the Prometheus dependencies, and moves things into a new viz component 'linkerd-metrics-api' (#5560) 2021-01-21 18:26:38 -05:00
servicemirror Add support for service-mirror selectors (#4795) 2020-07-30 10:07:14 -07:00
tap Separate observability API (#5510) 2021-01-13 14:34:54 -05:00
tls Have the tap APIServer refresh its cert automatically (#5388) 2020-12-16 17:46:14 -05:00
trace Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
tree Expose namespaceSelector for admission webhooks in helm chart (#5074) 2020-10-13 16:08:56 -07:00
util Add opaque ports to destination service updates (#5294) 2020-12-18 12:38:59 -05:00
version Bump proxy-init to v1.3.8 (#5283) 2020-11-27 09:07:34 -05:00