2020-10-07 22:39:43 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-07-01 02:19:38 +01:00
|
|
|
|
2021-01-09 23:18:50 +00:00
|
|
|
# SHA of ${version} for the tool's help output. Unfortunately this is needed in build flags.
|
2021-12-06 14:37:00 +00:00
|
|
|
let rev = "237bd35906f5c4bed1f4de4aa58cc6a6a676d4fd";
|
2019-07-01 02:19:38 +01:00
|
|
|
in
|
2020-10-07 22:39:43 +01:00
|
|
|
buildGoModule rec {
|
2019-07-01 02:19:38 +01:00
|
|
|
pname = "sonobuoy";
|
2021-12-06 14:37:00 +00:00
|
|
|
version = "0.55.1"; # Do not forget to update `rev` above
|
2019-07-01 02:19:38 +01:00
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags =
|
2020-12-16 19:43:47 +00:00
|
|
|
let t = "github.com/vmware-tanzu/sonobuoy";
|
2021-08-26 07:45:51 +01:00
|
|
|
in [
|
|
|
|
"-s"
|
|
|
|
"-X ${t}/pkg/buildinfo.Version=v${version}"
|
|
|
|
"-X ${t}/pkg/buildinfo.GitSHA=${rev}"
|
|
|
|
"-X ${t}/pkg/buildDate=unknown"
|
|
|
|
];
|
2019-07-01 02:19:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-11-22 21:29:01 +00:00
|
|
|
owner = "vmware-tanzu";
|
2021-10-28 17:24:01 +01:00
|
|
|
repo = "sonobuoy";
|
|
|
|
rev = "v${version}";
|
2021-12-06 14:37:00 +00:00
|
|
|
sha256 = "sha256-pHpnh+6O9yjnDA8u0jyLvqNQbXC+xz8fRn47aQNdOAo=";
|
2019-07-01 02:19:38 +01:00
|
|
|
};
|
|
|
|
|
2021-11-15 14:36:06 +00:00
|
|
|
vendorSha256 = "sha256-jPKCWTFABKRZCg6X5VVdrmOU/ZFc7yGD7R8RJrpcITg=";
|
2020-10-07 22:39:43 +01:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2019-07-01 02:19:38 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = ''
|
|
|
|
Diagnostic tool that makes it easier to understand the
|
|
|
|
state of a Kubernetes cluster.
|
|
|
|
'';
|
|
|
|
longDescription = ''
|
|
|
|
Sonobuoy is a diagnostic tool that makes it easier to understand the state of
|
|
|
|
a Kubernetes cluster by running a set of Kubernetes conformance tests in an
|
|
|
|
accessible and non-destructive manner.
|
|
|
|
'';
|
|
|
|
|
2019-11-22 21:29:01 +00:00
|
|
|
homepage = "https://sonobuoy.io";
|
2019-07-01 02:19:38 +01:00
|
|
|
license = licenses.asl20;
|
2020-10-07 22:39:43 +01:00
|
|
|
maintainers = with maintainers; [ carlosdagos saschagrunert wilsonehusin ];
|
2019-07-01 02:19:38 +01:00
|
|
|
};
|
|
|
|
}
|