linkerd2/bin
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
..
win Update CI and docs to reference `main` branch (#4662) 2020-06-24 12:39:22 -07:00
_docker.sh build: Remove the DOCKER_TRACE environment variable (#5583) 2021-01-20 22:09:47 -08:00
_log.sh Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
_os.sh Created ./bin/_os.sh lib for os-arch detection (#4880) 2020-08-14 09:59:52 -05:00
_release.sh Fix spelling mistakes using codespell (#4700) 2020-07-07 17:07:22 -05:00
_tag.sh Migrate CI to docker buildx and other improvements (#4765) 2020-07-22 14:27:45 -05:00
_test-helpers.sh Rename extension charts to linkerd-* (#5552) 2021-01-26 16:20:49 -08:00
build-cli-bin viz: move some components into linkerd-viz (#5340) 2020-12-23 20:17:31 +05:30
certs-openssl Ability for int tests to use external certs generated with openssl (#4997) 2020-09-25 11:25:29 -05:00
create-release-tag Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
docker Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
docker-build 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
docker-build-cli-bin Update BUILD.md with multiarch stuff and some extras (#5199) 2020-11-12 09:36:54 -05:00
docker-build-cni-plugin CI: Remove Base image (#4782) 2020-07-23 17:00:12 -05:00
docker-build-controller Migrate CI to docker buildx and other improvements (#4765) 2020-07-22 14:27:45 -05:00
docker-build-debug CI: Remove Base image (#4782) 2020-07-23 17:00:12 -05:00
docker-build-grafana Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
docker-build-jaeger-webhook Rename proxy-mutator to jaeger-injector (#5351) 2021-01-06 10:00:07 -08:00
docker-build-metrics-api 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
docker-build-proxy Migrate CI to docker buildx and other improvements (#4765) 2020-07-22 14:27:45 -05:00
docker-build-web Migrate CI to docker buildx and other improvements (#4765) 2020-07-22 14:27:45 -05:00
docker-cache-prune Migrate CI to docker buildx and other improvements (#4765) 2020-07-22 14:27:45 -05:00
docker-images Migrate CI to docker buildx and other improvements (#4765) 2020-07-22 14:27:45 -05:00
docker-pull Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
docker-pull-binaries Release ARM CLI artifacts (#4841) 2020-08-11 09:25:58 -05:00
docker-push 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
docker-retag-all Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
docker-test-proxy build: Remove the DOCKER_TRACE environment variable (#5583) 2021-01-20 22:09:47 -08:00
fetch-proxy Build ARM docker images (#4794) 2020-08-05 11:14:01 -07:00
fmt 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
git-commit-proxy-version Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
go-run go-run: Move temporary binary into `target` directory (#4657) 2020-06-23 15:55:34 -07:00
goimports Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
helm Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
helm-build Rename extension charts to linkerd-* (#5552) 2021-01-26 16:20:49 -08:00
helm-docs Add automatic readme generation for charts (#5316) 2020-12-02 14:37:45 -05:00
helm-docs-diff bin/shellcheck-all was missing some files (#5335) 2020-12-08 09:30:52 -05:00
image-load 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
install-deps Build ARM docker images (#4794) 2020-08-05 11:14:01 -07:00
install-pr Change script to work with k3d and install only CLI (#5333) 2020-12-07 11:35:01 -05:00
k3d Upgrade k3d to v3.4.0 (#5483) 2021-01-06 12:00:38 -05:00
kind Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
kubectl Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
linkerd Created ./bin/_os.sh lib for os-arch detection (#4880) 2020-08-14 09:59:52 -05:00
lint Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
markdownlint Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
markdownlint-all Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
minikube-start-hyperv.bat Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
mkube Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
protoc bin/protoc-diff: Don't assume Debian and don't install unzip (#5347) 2020-12-09 09:12:38 -05:00
protoc-diff bin/protoc-diff: Don't assume Debian and don't install unzip (#5347) 2020-12-09 09:12:38 -05:00
protoc-go.sh Simplify SelfCheck API (#5665) 2021-02-05 10:13:45 -05:00
root-tag Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
shellcheck Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
shellcheck-all bin/shellcheck-all was missing some files (#5335) 2020-12-08 09:30:52 -05:00
test-cleanup bin/test-cleanup reordering (#5666) 2021-02-04 14:01:01 -05:00
test-clouds Improve shellscript portability by using /bin/env (#4628) 2020-06-19 15:49:29 -04:00
test-clouds-cleanup Use linkerd path in test-cleanup (#5498) 2021-01-08 15:24:14 -05:00
test-scale Fix spelling mistakes using codespell (#4700) 2020-07-07 17:07:22 -05:00
tests Use linkerd path in test-cleanup (#5498) 2021-01-08 15:24:14 -05:00
update-codegen.sh Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
web Tweak error message in web script (#5596) 2021-01-26 11:21:44 -06:00