linkerd-checker

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 1 Imported by: 0

README

A utility to analyse linkerd check's output

Go Report Card shields shields shields shields

command-line utility for analyse linkerd check's output.

Introduction

Why linkerd-checker when we already have linkerd check?
Yes, the check command in linkerd does the work. But running the checks against certain categories is not working at the moment.

What does it mean to us? If I want to run the checks post-installation of linkerd in our environment, we are forced to run all checks.
And we do not have a native way to ignore certain components or categories while running checks.

linkerd has a way to generate the output of tests as JSON, and the linkerd-checker leverages this and helps in filtering the output based on selected categories so that one can run or fail tests only for the selected components.

This might not help everyone, but it will definitely help some groups that are considering testing linkerd post-installation.

Requirements

  • Basic understanding of linkerd and running the checks using linkerd.

Usage

The command analyse would help in analysing the json output of linkerd check command.

# Running the below command would analyse the entire output
linkerd2 check -o json | linkerd-checker analyse --all

# Running the below command would analyse output for linkerd components linkerd-smi and linkerd-multicluster only
linkerd2 check -o json | linkerd-checker analyse --category linkerd-smi --category linkerd-multicluster

# Analysing output of linkerd viz checks
linkerd2 viz check -o json | linkerd-checker analyse --all

# Analysing output of linkerd multicluster check
linkerd multicluster check -o json | linkerd-checker analyse --all

Documentation

Updated documentation on all available commands and flags can be found here.

Installation

  • Recommend installing released versions. Release binaries are available on the releases page and docker from here.
  • Can always build it locally by running go build against cloned repo.
Docker

Latest version of docker images are published to ghcr.io, all available images can be found there.

docker pull ghcr.io/nikhilsbhat/linkerd-checker:latest
docker pull ghcr.io/nikhilsbhat/linkerd-checker:<github-release-tag>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL