kube-score: add version test

This commit is contained in:
figsoda
2023-07-09 10:26:42 -04:00
parent b9fb0b5d60
commit a112a598a3
@@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, kube-score
}:
buildGoModule rec {
@@ -23,6 +25,13 @@ buildGoModule rec {
"-X=main.commit=${src.rev}"
];
passthru.tests = {
version = testers.testVersion {
package = kube-score;
command = "kube-score version";
};
};
meta = with lib; {
description = "Kubernetes object analysis with recommendations for improved reliability and security";
homepage = "https://github.com/zegl/kube-score";