kubectl-ktop: init at 0.3.5
This commit is contained in:
parent
5082fb6707
commit
ad15a6f12c
|
@ -0,0 +1,36 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kubectl-ktop";
|
||||
version = "0.3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vladimirvivien";
|
||||
repo = "ktop";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-nkIRVt2kqsE9QBYvvHmupohnzH+OBcwWwV16rMePw4I=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-IiAMmHOq69WMT2B1q9ZV2fGDnLr7AbRm1P7ACSde2FE=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/vladimirvivien/ktop/buildinfo.Version=v${version}"
|
||||
"-X github.com/vladimirvivien/ktop/buildinfo.GitSHA=${src.rev}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/ktop $out/bin/kubectl-ktop
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A top-like tool for your Kubernetes clusters";
|
||||
homepage = "https://github.com/vladimirvivien/ktop";
|
||||
changelog = "https://github.com/vladimirvivien/ktop/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.ivankovnatsky ];
|
||||
};
|
||||
}
|
|
@ -31495,6 +31495,8 @@ with pkgs;
|
|||
|
||||
kubectl-images = callPackage ../applications/networking/cluster/kubectl-images { };
|
||||
|
||||
kubectl-ktop = callPackage ../applications/networking/cluster/kubectl-ktop { };
|
||||
|
||||
kubectl-node-shell = callPackage ../applications/networking/cluster/kubectl-node-shell { };
|
||||
|
||||
kubectl-tree = callPackage ../applications/networking/cluster/kubectl-tree { };
|
||||
|
|
Loading…
Reference in a new issue