summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/kuttl/default.nix
diff options
context:
space:
mode:
authordiegolelis <diego.lelis@keeptruckin.com>2021-03-31 13:19:50 -0700
committerdiegolelis <diego.lelis@keeptruckin.com>2021-03-31 13:19:50 -0700
commit2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f (patch)
tree64bd9e5c5ecd6ad7401b05c07e911faedb398290 /pkgs/applications/networking/cluster/kuttl/default.nix
parenta3dda724d3b1aff56baec1521641e29a07c5a926 (diff)
downloadnixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.tar
nixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.tar.gz
nixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.tar.bz2
nixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.tar.lz
nixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.tar.xz
nixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.tar.zst
nixpkgs-2d3b93f4ee5bfe8504276ab2a6dd0fe8d359b51f.zip
kuttl: init at version 0.9.0
Diffstat (limited to 'pkgs/applications/networking/cluster/kuttl/default.nix')
-rw-r--r--pkgs/applications/networking/cluster/kuttl/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/kuttl/default.nix b/pkgs/applications/networking/cluster/kuttl/default.nix
new file mode 100644
index 00000000000..0c8f7f1574c
--- /dev/null
+++ b/pkgs/applications/networking/cluster/kuttl/default.nix
@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub}:
+
+buildGoModule rec {
+  name = "kuttl";
+  pname = "kuttl";
+  version = "0.9.0";
+  cli = "kubectl-kuttl";
+
+  src = fetchFromGitHub {
+    owner  = "kudobuilder";
+    repo   = "kuttl";
+    rev    = "v${version}";
+    sha256 = "sha256:1cji0py2340mvcpplwq3licdkzjx7q5f27fdjjxvbhrgksnyw6hs";
+  };
+
+  vendorSha256 = "sha256:1shra42ifa2knxp58fj5hn074jg89f3nqdqk4rqbp3ybir84ahsd";
+
+  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 ];
+  };
+}