Skip to content

Commit

Permalink
Merge pull request #221027 from NixOS/backport-220745-to-release-22.11
Browse files Browse the repository at this point in the history
[Backport release-22.11] kubernetes-metrics-server: init at version 0.6.2
  • Loading branch information
NickCao authored Mar 14, 2023
2 parents b7fc1f3 + 8a1e640 commit c4aec3c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
pname = "kubernetes-metrics-server";
version = "0.6.2";

src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = "metrics-server";
rev = "v${version}";
sha256 = "sha256-TTI+dNBQ/jKt6Yhud3/OO+zOkeO46CmUz6J6ByX26JE=";
};

vendorSha256 = "sha256-lpSMvHYlPtlJQUqsdXJ6ewBEBiwLPvP/rsUgYzJhOxc=";

preCheck = ''
# the e2e test breaks the sandbox, so let's skip that
rm test/e2e_test.go
'';

meta = with lib; {
homepage = "https://github.com/kubernetes-sigs/metrics-server";
description = "Kubernetes container resource metrics collector";
license = licenses.asl20;
maintainers = with maintainers; [ eskytthe ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29933,6 +29933,8 @@ with pkgs;
kubectl = callPackage ../applications/networking/cluster/kubernetes/kubectl.nix { };
kubectl-convert = kubectl.convert;

kubernetes-metrics-server = callPackage ../applications/networking/cluster/kubernetes-metrics-server { };

kubemqctl = callPackage ../applications/networking/cluster/kubemqctl { };

kubent = callPackage ../applications/networking/cluster/kubent { };
Expand Down

0 comments on commit c4aec3c

Please sign in to comment.