From f922e2d7c13f9387347b6a2600a1b43d97f82803 Mon Sep 17 00:00:00 2001 From: Andrew Seigner Date: Thu, 25 Feb 2021 14:40:57 -0800 Subject: [PATCH] Change check category to linkerd-buoyant (#7) `linkerd check` outputs a check per extension, with the category being the name of the extension. `linkerd-buoyant`s category was `buoyant-cloud`, so it created multiple categories on the output. Change the category from `buoyant-cloud` to `linkerd-buoyant`. Fixes #6 Signed-off-by: Andrew Seigner --- pkg/healthcheck/healthcheck.go | 2 +- pkg/healthcheck/healthcheck_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/healthcheck/healthcheck.go b/pkg/healthcheck/healthcheck.go index f52b573..8c45dc4 100644 --- a/pkg/healthcheck/healthcheck.go +++ b/pkg/healthcheck/healthcheck.go @@ -15,7 +15,7 @@ import ( const ( // categoryID identifies this extension to linkerd check. - categoryID healthcheck.CategoryID = k8s.Namespace + categoryID healthcheck.CategoryID = version.LinkerdBuoyant ) // HealthChecker wraps Linkerd's main healthchecker, adding extra fields for diff --git a/pkg/healthcheck/healthcheck_test.go b/pkg/healthcheck/healthcheck_test.go index 738d42f..637f095 100644 --- a/pkg/healthcheck/healthcheck_test.go +++ b/pkg/healthcheck/healthcheck_test.go @@ -68,8 +68,8 @@ func TestHealthChecker(t *testing.T) { return hc }, false, - `buoyant-cloud -------------- + `linkerd-buoyant +--------------- √ linkerd-buoyant can determine the latest version √ linkerd-buoyant cli is up-to-date √ buoyant-cloud Namespace exists @@ -143,8 +143,8 @@ Status check results are × return hc }, true, - `buoyant-cloud -------------- + `linkerd-buoyant +--------------- √ linkerd-buoyant can determine the latest version √ linkerd-buoyant cli is up-to-date √ buoyant-cloud Namespace exists