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.
|
|
|
|
let rev = "f6e19140201d6bf2f1274bf6567087bc25154210";
|
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-03-19 22:19:01 +00:00
|
|
|
version = "0.50.0"; # Do not forget to update `rev` above
|
2019-07-01 02:19:38 +01:00
|
|
|
|
|
|
|
buildFlagsArray =
|
2020-12-16 19:43:47 +00:00
|
|
|
let t = "github.com/vmware-tanzu/sonobuoy";
|
2019-07-01 02:19:38 +01:00
|
|
|
in ''
|
|
|
|
-ldflags=
|
2020-11-02 05:49:59 +00:00
|
|
|
-s -X ${t}/pkg/buildinfo.Version=v${version}
|
2019-07-01 02:19:38 +01:00
|
|
|
-X ${t}/pkg/buildinfo.GitSHA=${rev}
|
|
|
|
-X ${t}/pkg/buildDate=unknown
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-03-19 22:19:01 +00:00
|
|
|
sha256 = "sha256-LhprsDlWZjNRE6pu7V9WBszy/+bNpn5KoRopIoWvdsg=";
|
2019-07-01 02:19:38 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "sonobuoy";
|
2019-11-22 21:29:01 +00:00
|
|
|
owner = "vmware-tanzu";
|
2019-07-01 02:19:38 +01:00
|
|
|
};
|
|
|
|
|
2021-03-19 22:19:01 +00:00
|
|
|
vendorSha256 = "sha256-0Vx74nz0djJB12UPybo2Z8KVpSyKHuKPFymh/Rlpv88=";
|
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
|
|
|
};
|
|
|
|
}
|