2022-10-01 02:52:35 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-03-31 20:19:50 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kuttl";
|
2023-01-10 17:23:40 +00:00
|
|
|
version = "0.15.0";
|
2021-03-31 20:19:50 +00:00
|
|
|
cli = "kubectl-kuttl";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-01 02:52:35 +00:00
|
|
|
owner = "kudobuilder";
|
|
|
|
repo = "kuttl";
|
|
|
|
rev = "v${version}";
|
2023-01-10 17:23:40 +00:00
|
|
|
sha256 = "sha256-u+j1ulM6B238qXvLMJZwLqglr9CGk81MsnBYiNiZVJQ=";
|
2021-03-31 20:19:50 +00:00
|
|
|
};
|
|
|
|
|
2023-01-10 17:23:40 +00:00
|
|
|
vendorHash = "sha256-taJAQPa0EA0Ph9OpCs7jzLqBV61kVstZrWyNEYc/GBk=";
|
2021-03-31 20:19:50 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/kubectl-kuttl" ];
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
2022-10-01 02:52:35 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-08-26 06:45:51 +00:00
|
|
|
"-X github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}"
|
|
|
|
];
|
2021-03-31 20:19:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The KUbernetes Test TooL (KUTTL) provides a declarative approach to testing production-grade Kubernetes operators";
|
|
|
|
homepage = "https://github.com/kudobuilder/kuttl";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ diegolelis ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "kubectl-kuttl";
|
2021-03-31 20:19:50 +00:00
|
|
|
};
|
|
|
|
}
|