Commit a9611f34 authored by 06kellyjac's avatar 06kellyjac Committed by Anderson Torres
Browse files

netassert: init at 2.0.1

parent 89f2a7f6
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "netassert";
  version = "2.0.1";

  src = fetchFromGitHub {
    owner = "controlplaneio";
    repo = "netassert";
    rev = "v${version}";
    hash = "sha256-bKfqSyG6YXrkHqja8f9R+49mdwOKM5NJuRrcKj7QDj8=";
  };
  vendorHash = "sha256-nDnSJOfEn9KieDwdNeIGFcI4m8rVU+Yaxwa+dKyNSHM=";

  ldflags = [
    "-s"
    "-w"
    "-X main.version=${src.rev}"
  ];

  postBuild = ''
    mv $GOPATH/bin/{cli,netassert}
  '';

  meta = with lib; {
    homepage = "https://github.com/controlplaneio/netassert";
    changelog = "https://github.com/controlplaneio/netassert/blob/${src.rev}/CHANGELOG.md";
    description = "A command line utility to test network connectivity between kubernetes objects";
    longDescription = ''
      NetAssert is a command line utility to test network connectivity between kubernetes objects.
      It currently supports Deployment, Pod, Statefulset and Daemonset.
      You can check the traffic flow between these objects or from these objects to a remote host or an IP address.
    '';
    license = licenses.asl20;
    maintainers = with maintainers; [ jk ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10259,6 +10259,8 @@ with pkgs;
  ndisc6 = callPackage ../tools/networking/ndisc6 { };
  netassert = callPackage ../tools/networking/netassert { };
  netboot = callPackage ../tools/networking/netboot { };
  netbootxyz-efi = callPackage ../tools/misc/netbootxyz-efi { };