2018-07-24 19:43:26 +00:00
|
|
|
{ stdenv, fetchFromGitHub, lib, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "kubetail";
|
2019-09-26 23:44:00 +00:00
|
|
|
version = "1.6.10";
|
2018-07-24 19:43:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johanhaleby";
|
|
|
|
repo = "kubetail";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2019-09-26 23:44:00 +00:00
|
|
|
sha256 = "0bg872n9fs6pl03rmjny9sgby718yznx9jwi5rx3hi4km3ha9j0b";
|
2018-07-24 19:43:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-11-26 21:15:39 +00:00
|
|
|
install -Dm755 kubetail "$out/bin/kubetail"
|
|
|
|
install -Dm755 completion/kubetail.bash "$out/share/bash-completion/completions/kubetail"
|
|
|
|
install -Dm755 completion/kubetail.fish "$out/share/fish/vendor_completions.d/kubetail.fish"
|
|
|
|
install -Dm755 completion/kubetail.zsh "$out/share/zsh/site-functions/_kubetail"
|
2018-07-24 19:43:26 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/johanhaleby/kubetail";
|
2018-07-24 19:43:26 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|