Skip to content

Commit

Permalink
Merge pull request NixOS#220745 from eskytthe/kubernetes-metrics-server
Browse files Browse the repository at this point in the history
kubernetes-metrics-server: init at version 0.6.2
  • Loading branch information
fpletz authored Mar 13, 2023
2 parents a684a9c + d8c4c93 commit d144e9c
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 @@ -31128,6 +31128,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 d144e9c

Please sign in to comment.