mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
kube-linter: init at 0.2.5
This commit is contained in:
parent
81755f9615
commit
43cba143c0
31
pkgs/development/tools/kube-linter/default.nix
Normal file
31
pkgs/development/tools/kube-linter/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, testVersion, kube-linter }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kube-linter";
|
||||
version = "0.2.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stackrox";
|
||||
repo = pname;
|
||||
rev = "${version}";
|
||||
sha256 = "GUDrUEBorV4/ZqPnfNYcsbW4Zr1LpS3yL+4OgxFbTOk=";
|
||||
};
|
||||
|
||||
vendorSha256 = "xGghTP9thICOGIfc5VPJK06DeXfLiTckwa4nXv83/P8=";
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
|
||||
];
|
||||
|
||||
passthru.tests.version = testVersion {
|
||||
package = kube-linter;
|
||||
command = "kube-linter version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A static analysis tool that checks Kubernetes YAML files and Helm charts";
|
||||
homepage = "https://kubelinter.io";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ mtesseract ];
|
||||
};
|
||||
}
|
@ -14966,6 +14966,8 @@ with pkgs;
|
||||
|
||||
kubectx = callPackage ../development/tools/kubectx { };
|
||||
|
||||
kube-linter = callPackage ../development/tools/kube-linter { };
|
||||
|
||||
kube-prompt = callPackage ../development/tools/kube-prompt { };
|
||||
|
||||
kubei = callPackage ../tools/security/kubei { };
|
||||
|
Loading…
Reference in New Issue
Block a user