mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #148645 from fabaff/kubeaudit
kubeaudit: init at 0.16.0
This commit is contained in:
commit
46ec9351bb
32
pkgs/tools/security/kubeaudit/default.nix
Normal file
32
pkgs/tools/security/kubeaudit/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kubeaudit";
|
||||
version = "0.16.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Shopify";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-AIvH9HF0Ha1b+NZiJmiT6beYuKnCqJMXKzDFUzV9J4c=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-XrEzkhQU/KPElQNgCX6yWDMQXZSd3lRXmUDJpsj5ACY=";
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cmd $out/bin/$pname
|
||||
'';
|
||||
|
||||
# Tests require a running Kubernetes instance
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Audit tool for Kubernetes";
|
||||
homepage = "https://github.com/Shopify/kubeaudit";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -14789,6 +14789,8 @@ with pkgs;
|
||||
|
||||
kube-aws = callPackage ../development/tools/kube-aws { };
|
||||
|
||||
kubeaudit = callPackage ../tools/security/kubeaudit { };
|
||||
|
||||
kubectx = callPackage ../development/tools/kubectx { };
|
||||
|
||||
kube-prompt = callPackage ../development/tools/kube-prompt { };
|
||||
|
Loading…
Reference in New Issue
Block a user