summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/kuttl/default.nix
blob: 6470cd640e2dc6f664a33499b17ed0b7f09f8ea6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildGoModule, fetchFromGitHub}:

buildGoModule rec {
  pname = "kuttl";
  version = "0.11.0";
  cli = "kubectl-kuttl";

  src = fetchFromGitHub {
    owner  = "kudobuilder";
    repo   = "kuttl";
    rev    = "v${version}";
    sha256 = "sha256-42acx1UcvuzDZX2A33zExhhdNqWGkN0i6FR/Kx76WVM=";
  };

  vendorSha256 = "sha256-TUNFUI7Lj7twJhM3bIdL6ElygIVFOlRut1MoFwVRGeo=";

  subPackages = [ "cmd/kubectl-kuttl" ];

  buildFlagsArray = ''
    -ldflags=-s -w
    -X  github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}
  '';

  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 ];
  };
}