2022-02-10 20:34:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2021-04-13 19:44:15 +00:00
|
|
|
pname = "kubepug";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "1.3.2";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rikatz";
|
|
|
|
repo = "kubepug";
|
|
|
|
rev = "v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-cjL718xTgtYev/lYL24vwZcB+joY3wIY4ixRCwAHQ4E=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
vendorSha256 = "0hynxj3q4aa1gx3w4ak56z6j5iplxi2hzqzsjkgz20fy34nfd41s";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
|
|
|
|
];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
patches = [
|
|
|
|
./skip-external-network-tests.patch
|
|
|
|
];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Checks a Kubernetes cluster for objects using deprecated API versions";
|
|
|
|
homepage = "https://github.com/rikatz/kubepug";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mausch ];
|
|
|
|
};
|
|
|
|
}
|