2021-03-31 21:19:50 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kuttl";
|
2021-08-14 12:25:13 +01:00
|
|
|
version = "0.11.1";
|
2021-03-31 21:19:50 +01:00
|
|
|
cli = "kubectl-kuttl";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kudobuilder";
|
|
|
|
repo = "kuttl";
|
|
|
|
rev = "v${version}";
|
2021-08-14 12:25:13 +01:00
|
|
|
sha256 = "sha256-jvearvhl2fQV5OOVmvf3C4MjE//wkVs8Ly9BIwv15/8=";
|
2021-03-31 21:19:50 +01:00
|
|
|
};
|
|
|
|
|
2021-08-14 12:25:13 +01:00
|
|
|
vendorSha256 = "sha256-EytHUfr6RbgXowYlfuajvNt9VwmGmvw9TBRtwYMAIh4=";
|
2021-03-31 21:19:50 +01:00
|
|
|
|
|
|
|
subPackages = [ "cmd/kubectl-kuttl" ];
|
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}"
|
|
|
|
];
|
2021-03-31 21:19:50 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|