Commit 76e765c5 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

kubeclarity: rename from kubei

parent b7a9deb5
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{ lib
, btrfs-progs
, buildGoModule
, fetchFromGitHub
, lvm2
, pkg-config
}:

buildGoModule rec {
  pname = "kubei";
  version = "1.0.12";
  pname = "kubeclarity";
  version = "2.18.0";

  src = fetchFromGitHub {
    owner = "Portshift";
    owner = "openclarity";
    repo = pname;
    rev = version;
    sha256 = "sha256-QUPRw8fQ6ahBLZox6m4+feYIrcgDnCTe72nMF8iAV+Y=";
    rev = "refs/tags/v${version}";
    hash = "sha256-qXBD3JurBU7RBemj+gr/tBGpfqKhwk5VPBKaTuM4URg=";
  };

  vendorSha256 = "sha256-uWDQf0zcTTPBthK60bmGJBP/m+yUu5PvYAbwyd0dcWE=";
  vendorHash = "sha256-L7g48EH3cuhgSZ87JoMVvv5nGDzjUpOufsikINCdhao=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    btrfs-progs
    lvm2
  ];

  sourceRoot = "${src.name}/cli";

  ldflags = [
    "-s"
    "-w"
  ];

  postInstall = ''
    mv $out/bin/cli $out/bin/kubeclarity
  '';

  meta = with lib; {
    description = "Kubernetes runtime scanner";
    longDescription = ''
      Kubei is a vulnerabilities scanning and CIS Docker benchmark tool that
      KubeClarity is a vulnerabilities scanning and CIS Docker benchmark tool that
      allows users to get an accurate and immediate risk assessment of their
      kubernetes clusters. Kubei scans all images that are being used in a
      Kubernetes cluster, including images of application pods and system pods.
    '';
    homepage = "https://github.com/Portshift/kubei";
    homepage = "https://github.com/openclarity/kubeclarity";
    changelog = "https://github.com/openclarity/kubeclarity/releases/tag/v${version}";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
+1 −0
Original line number Diff line number Diff line
@@ -812,6 +812,7 @@ mapAliases ({
  krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
  krita-beta = krita; # moved from top-level 2021-12-23
  kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
  kubei = kubeclarity; # Added 2023-05-20
  kubeless = throw "kubeless is deprecated and archived by upstream"; # Added 2022-04-05
  kubicorn = throw "kubicorn has been dropped due to the lack of maintenance from upstream since 2019"; # Added 2022-05-30
  kvm = throw "'kvm' has been renamed to/replaced by 'qemu_kvm'"; # Converted to throw 2022-02-22
+1 −1
Original line number Diff line number Diff line
@@ -18622,7 +18622,7 @@ with pkgs;
  kube-prompt = callPackage ../development/tools/kube-prompt { };
  kubei = callPackage ../tools/security/kubei { };
  kubeclarity = callPackage ../tools/security/kubeclarity { };
  kubemq-community = callPackage ../servers/kubemq-community { };