2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, kube-linter }:
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kube-linter";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "0.3.0";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stackrox";
|
|
|
|
repo = pname;
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "ZqnD9zsh+r1RL34o1nAkvO1saKe721ZJ2+DgBjmsH58=";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
vendorSha256 = "sha256-tm1+2jsktNrw8S7peJz7w8k3+JwAYUgKfKWuQ8zIfvk=";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-01-07 04:07:37 +00:00
|
|
|
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;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ mtesseract stehessel ];
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
}
|