2022-03-24 08:18:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubent";
|
2022-12-17 14:30:23 +00:00
|
|
|
version = "0.7.0";
|
2022-03-24 08:18:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "doitintl";
|
|
|
|
repo = "kube-no-trouble";
|
|
|
|
rev = "${version}";
|
2022-12-17 14:30:23 +00:00
|
|
|
sha256 = "sha256-QIvMhKAo30gInqJBpHvhcyjgVkdRqgBKwLQ80ng/75U=";
|
2022-03-24 08:18:02 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 14:30:23 +00:00
|
|
|
vendorSha256 = "sha256-XXf6CPPHVvCTZA4Ve5/wmlgXQ/gZZUW0W/jXA0bJgLA=";
|
2022-03-24 08:18:02 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w" "-s"
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
subPackages = [ "cmd/kubent" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/doitintl/kube-no-trouble";
|
|
|
|
description = "Easily check your cluster for use of deprecated APIs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterromfeldhk ];
|
|
|
|
};
|
|
|
|
}
|