2024-10-14 15:12:04 +00:00
|
|
|
{
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
kubent,
|
|
|
|
lib,
|
|
|
|
testers,
|
|
|
|
}:
|
2022-03-24 08:18:02 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubent";
|
2024-10-14 15:12:04 +00:00
|
|
|
version = "0.7.3";
|
2022-03-24 08:18:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "doitintl";
|
|
|
|
repo = "kube-no-trouble";
|
2023-07-02 18:39:50 +00:00
|
|
|
rev = version;
|
2024-10-14 15:12:04 +00:00
|
|
|
hash = "sha256-7bn7DxbZ/Nqob7ZEWRy1UVg97FiJN5JWEgpH1CDz6jQ=";
|
2022-03-24 08:18:02 +00:00
|
|
|
};
|
|
|
|
|
2024-10-14 15:12:04 +00:00
|
|
|
vendorHash = "sha256-+V+/TK60V8NYUDfF5/EgSZg4CLBn6Mt57diiyXm179k=";
|
2022-03-24 08:18:02 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2024-10-14 15:12:04 +00:00
|
|
|
"-w"
|
|
|
|
"-s"
|
2022-03-24 08:18:02 +00:00
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
subPackages = [ "cmd/kubent" ];
|
|
|
|
|
2023-12-23 22:05:44 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = kubent;
|
|
|
|
command = "kubent --version";
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
|
|
|
|
2024-10-14 15:12:04 +00:00
|
|
|
meta = {
|
2022-03-24 08:18:02 +00:00
|
|
|
description = "Easily check your cluster for use of deprecated APIs";
|
2024-10-14 15:21:29 +00:00
|
|
|
changelog = "https://github.com/doitintl/kube-no-trouble/releases/tag/${version}";
|
2024-10-14 15:12:04 +00:00
|
|
|
homepage = "https://github.com/doitintl/kube-no-trouble";
|
|
|
|
license = lib.licenses.mit;
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "kubent";
|
2024-10-14 15:12:04 +00:00
|
|
|
maintainers = with lib.maintainers; [ peterromfeldhk ];
|
2022-03-24 08:18:02 +00:00
|
|
|
};
|
|
|
|
}
|