Commit a112a598 authored by figsoda's avatar figsoda
Browse files

kube-score: add version test

parent b9fb0b5d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ 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";