2018-07-24 20:43:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub, lib, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kubetail-${version}";
|
2018-11-19 12:11:14 +00:00
|
|
|
version = "1.6.5";
|
2018-07-24 20:43:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johanhaleby";
|
|
|
|
repo = "kubetail";
|
|
|
|
rev = "${version}";
|
2018-11-19 12:11:14 +00:00
|
|
|
sha256 = "0q8had1bi1769wd6h1c43gq0cvr5qj1fvyglizlyq1gm8qi2dx7n";
|
2018-07-24 20:43:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 kubetail $out/bin/kubetail
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bash script to tail Kubernetes logs from multiple pods at the same time";
|
|
|
|
longDescription = ''
|
|
|
|
Bash script that enables you to aggregate (tail/follow) logs from
|
|
|
|
multiple pods into one stream. This is the same as running "kubectl logs
|
|
|
|
-f " but for multiple pods.
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/johanhaleby/kubetail;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|