mirror of https://github.com/linkerd/linkerd2.git
* checks: make hintBaseURL configurable Fixes #5740 Currently, When external binaries use the `healthcheck` pkg, They can't really override the `hintBaseURL` variable which is used to set the baseURL of the troubleshooting doc (in which hintAnchor is used as a anchor). This PR updates that by adding a new `hintBaseURL` field to `healthcheck.Category`. This field has been added to `Category` instead of `Checker` so as to reduce unecessary redundancy as the chances of setting a different baseURL for checkers under the same category is very low. This PR also updates the `runChecks` logic to automatically fallback onto the linkerd troubleshooting doc as the baseURL so that all the current checks don't have to set this field. This can be done otherwise (i.e removing the fallback logic and make all categories specify the URL) if there is a problem. Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com> |
||
|---|---|---|
| .. | ||
| healthcheck.go | ||
| healthcheck_output.go | ||
| healthcheck_test.go | ||
| sidecar.go | ||
| sidecar_test.go | ||
| version.go | ||
| version_test.go | ||